HPCMSL CI Detection Methods
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
#Detection Method for HP Client Management Script Library | |
(Get-WmiObject -Namespace 'root\cimv2\sms' -Query "SELECT ProductVersion FROM SMS_InstalledSoftware where ARPDisplayName like 'HP Client Management Script Library'").ProductVersion | |
#Detection Method for HP BIOS Version Compliance / Detection Method for HP Model Supported on Current OS | |
$HPCMSLVers = (Get-WmiObject -Namespace 'root\cimv2\sms' -Query "SELECT ProductVersion FROM SMS_InstalledSoftware where ARPDisplayName like 'HP Client Management Script Library'").ProductVersion | |
if ((Get-CimInstance -Namespace root/cimv2 -ClassName Win32_ComputerSystem).Manufacturer -like "H*"){$IsHP = $true} | |
if ($HPCMSLVers -ne $Null -and $IsHP -eq $true) | |
{ | |
Write-Output "HP with HPCMSL" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment