Files
runner-images/images/windows/scripts/build/Install-WDK.ps1
T

21 lines
767 B
PowerShell
Raw Normal View History

################################################################################
## File: Install-WDK.ps1
## Desc: Install the Windows Driver Kit
################################################################################
# Requires Windows SDK with the same version number as the WDK
if (Test-IsWin22) {
# SDK is available through Visual Studio
2025-07-08 19:48:36 +05:30
$wdkUrl = "https://go.microsoft.com/fwlink/?linkid=2324617"
} else {
throw "Invalid version of Visual Studio is found. Windows Server 2022 is required"
}
# Install all features without showing the GUI using wdksetup.exe
Install-Binary -Type EXE `
-Url $wdkUrl `
-InstallArgs @("/features", "+", "/quiet") `
-ExpectedSubject $(Get-MicrosoftPublisher)
2020-07-30 12:12:49 +05:00
Invoke-PesterTests -TestFile "WDK"