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:
co-authored by
Aleksandr Chebotov
Mikhail Timofeev
Aleksandr Chebotov
MaksimZhukov
parent
20584a4394
commit
a2d76d2a0e
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user