This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 5 | |
<# | |
.SYNOPSIS | |
High Performance Powershell Module Installation | |
.DESCRIPTION | |
This is a proof of concept for using the Powershell Gallery OData API and HTTPClient to parallel install packages | |
It is also a demonstration of using async tasks in powershell appropriately. Who says powershell can't be fast? | |
This drastically reduces the bandwidth/load against Powershell Gallery by only requesting the required data | |
It also handles dependencies (via Nuget), checks for existing packages, and caches already downloaded packages |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-SqlVersionName { | |
param( | |
[Version]$Version | |
) | |
$lookup = @{ | |
'Name' = ('Major', 'Minor', 'RTM', 'SP1', 'SP2', 'SP3', 'SP4') | |
'2016' = ( 13, 0, 1601, 4001 ) | |
'2014' = ( 12, 0, 2000, 4100, 5000 ) | |
'2012' = ( 11, 0, 2100, 3000, 5058, 6020 ) |