mirror of
https://github.com/actions/runner-images.git
synced 2025-12-30 13:58:18 +08:00
Add WDK on Windows Server 2022 (#5652)
This commit is contained in:
committed by
GitHub
parent
e27faa696e
commit
16f6912f37
@@ -1,6 +1,8 @@
|
||||
Describe "WDK" -Skip:(Test-IsWin22) {
|
||||
Describe "WDK" {
|
||||
It "WDK exists" {
|
||||
$WDKVersion = (Get-CimInstance -ClassName Win32_Product -Filter "Name = 'Windows Driver Kit'").Version
|
||||
$regKey = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
|
||||
$installedApplications = Get-ItemProperty -Path $regKey
|
||||
$WDKVersion = $installedApplications | Where-Object DisplayName -eq 'Windows Driver Kit' | Select-Object -First 1 -ExpandProperty DisplayVersion
|
||||
$WDKVersion| Should -Not -BeNullOrEmpty
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user