Installing HP Power Manager via PowerShell / ConfigMgr CI

This is pretty simple, as long as you have HPCMSL on your end points, and if you’re running HP Devices, you should just do it!

Related Posts:

HP Power Manager is a nifty tool to provide Battery Status information and set policy around battery Management. Extensive information can be found here: HP Business Notebook PCs – HP Power Manager | HP® Customer Support

In this Post I’m going to provide the information to have it automatically deploy to your end points

Configuration Item

Detection Method: (Makes sure the device is HP & a Laptop)

$Baseboard = Get-CimInstance -ClassName Win32_Baseboard
$LaptopChassisTypes = @("8","9","10","11","12","14","18","21","30","31")

#Confirm Device is HP
If (($Baseboard.Manufacturer -match "HP") -or ($Baseboard.Manufacturer -match "Hewlett")) {
    $chassi = gwmi -Class 'Win32_SystemEnclosure'
    if ($chassi.ChassisTypes -in $LaptopChassisTypes){ #Confirm Laptop
        Write-Output "HP Laptop"

Settings: Discovery Script

if (Get-AppxPackage | Where-Object {$_.Name -match "HPPowerManager"}){
    Write-Output "Compliant"
else {
    Write-Output "Non-Compliant"

Settings: Remediation Script

$SoftPaqInfo = Get-SoftpaqList -Category Software | Where-Object {$_.Name -match "Power Manager"}
Get-Softpaq -Number $ -SaveAs "C:\swsetup\$($" -Action silentinstall

Compliance Rules:

And with that, add it to your HP Baseline

And HP Power Manager will automatically be downloaded and installed the next time the baseline runs.

Get-AppxPackage -AllUsers | Where-Object {$_.Name -match "HPPowerManager"}

To Uninstall, just pipe that to Remove-AppxPackage -AllUsers

Then you can trigger your baseline again and confirm it all still works. Takes a couple minutes to reinstall..

Based on this example, you can deploy pretty much any of the HP Management software using HPCMSL.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.