Revert "Add WDK on Windows Server 2022 (#5652)" (#5711)

This reverts commit 16f6912f37.
This commit is contained in:
Aleksandr Chebotov
2022-06-08 16:26:18 +02:00
committed by GitHub
parent 76f5a7d73e
commit 5690ae9183
5 changed files with 20 additions and 33 deletions

View File

@@ -1,8 +1,6 @@
Describe "WDK" {
Describe "WDK" -Skip:(Test-IsWin22) {
It "WDK exists" {
$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 = (Get-CimInstance -ClassName Win32_Product -Filter "Name = 'Windows Driver Kit'").Version
$WDKVersion| Should -Not -BeNullOrEmpty
}