Created
December 23, 2019 21:04
-
-
Save gwblok/48b5ca82e6836a58e93b695793d42bc9 to your computer and use it in GitHub Desktop.
Checks if the current installed OS build is supported by HP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$CurrentBuild = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name 'ReleaseID' | |
$SupportedOSList = $null | |
$SupportedOSList = Get-HPDeviceDetails -oslist | Where-Object {$_.OperatingSystemRelease -eq $CurrentBuild} | |
if ($SupportedOSList -ne $null){Write-Output "Compliant"} | |
else{Write-Output "$CurrentBuild not supported by HP"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment