Files
runner-images-PK/images/win/scripts/Installers/Validate-WDK.ps1
T

20 lines
569 B
PowerShell
Raw Normal View History

################################################################################
## File: Validate-WDK.ps1
## Desc: Validate the installation of the Windows Driver Kit
################################################################################
2020-02-18 20:32:24 +03:00
function Get-WDKVersion
{
2020-05-21 19:49:51 +01:00
$WDKVersion = (Get-CimInstance -ClassName Win32_Product -Filter "Name = 'Windows Driver Kit'").Version
2020-02-18 20:32:24 +03:00
2020-02-18 22:33:31 +03:00
if (!$WDKVersion)
2020-02-18 20:32:24 +03:00
{
Write-Host "WDK was not found"
exit 1
}
}
Get-WDKVersion
$null = Get-VSExtensionVersion -packageName "Microsoft.Windows.DriverKit"
2020-02-18 20:32:24 +03:00