Check HP 2019 Battery Recall Status
This script will utilize the HP Battery Recall testing utility to check a laptop for a battery that is subject to the recall. It will upload the results back to the KServer, and have both a procedure log and custom field showing the status.
HP 2019 Battery Recall has no reviews.
Just a note, that I've seen a very *few* instances of the script failing to run because for whatever reason powershell.exe is not in the path for the system user.... In those instances, I modified line <14> of the agent procedure to change the command to run from
powershell.exe -ExecutionPolicy Unrestricted -File "#vagentConfiguration.agentTempDir#\hpbatt\hpbattparser.ps1" -PathToXML #vagentConfiguration.agentTempdir#\hpbatt
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -File "#vagentConfiguration.agentTempDir#\hpbatt\hpbattparser.ps1" -PathToXML #vagentConfiguration.agentTempdir#\hpbatt
and that allowed it to run correctly. Once I'm certain that there aren't a lot of other changes I'll need to make I'll upload a new version here with that fix.
New version 1.01 that includes the change noted above as well as an addition to send an email to the admin who scheduled the procedure notifying them in the event that a machine does actually require a battery replacement.