2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
## 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
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-02 20:07:12 +03:00
|
|
|
Get-WDKVersion
|
|
|
|
|
$null = Get-VSExtensionVersion -packageName "Microsoft.Windows.DriverKit"
|
2020-02-18 20:32:24 +03:00
|
|
|
|