Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #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 |
| 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 ) |