Add Windows Server 2022 image templates (#3929)

* add windows2022 image template

Co-authored-by: Aleksandr Chebotov <[email protected]>
Co-authored-by: Mikhail Timofeev <[email protected]>
Co-authored-by: Aleksandr Chebotov <[email protected]>
Co-authored-by: MaksimZhukov <[email protected]>
This commit is contained in:
Maxim Lobanov
2021-08-23 11:13:14 +03:00
committed by GitHub
co-authored by Aleksandr Chebotov Mikhail Timofeev Aleksandr Chebotov MaksimZhukov
parent 20584a4394
commit a2d76d2a0e
19 changed files with 679 additions and 75 deletions
@@ -25,6 +25,7 @@ Export-ModuleMember -Function @(
'Install-VsixExtension'
'Get-VSExtensionVersion'
'Get-WinVersion'
'Test-IsWin22'
'Test-IsWin19'
'Test-IsWin16'
'Choco-Install'
@@ -380,6 +380,11 @@ function Get-WinVersion
(Get-CimInstance -ClassName Win32_OperatingSystem).Caption
}
function Test-IsWin22
{
(Get-WinVersion) -match "2022"
}
function Test-IsWin19
{
(Get-WinVersion) -match "2019"