################################################################################ ## File: Validate-WDK.ps1 ## Desc: Validate the installation of the Windows Driver Kit ################################################################################ Import-Module -Name ImageHelpers -Force function Get-WDKVersion { $WDKVersion = (Get-WmiObject Win32_Product -Filter "Name = 'Windows Driver Kit'").version if (!$WDKVersion) { Write-Host "WDK was not found" exit 1 } return $WDKVersion } $WDKVersion = Get-WDKVersion $WDKPackageVersion = Get-VSExtensionVersion -packageName "Microsoft.Windows.DriverKit" # Adding description of the software to Markdown $SoftwareName = "Windows Driver Kit" $Description = @" _WDK Version:_ $WDKVersion
_WDK Visual Studio Extension Version:_ $WDKPackageVersion
"@ Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description