Lammtech logo tagline

HP 2019 Battery Recall

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.

  • Name: Jonathan Haase
  • Company: LammTech
  • Website:
  • Contact Developer
  • Summary
  • HP 2019 Battery Recall
  • Version: 1.01
  • Initially Released April 9th, 2019
  • Reviews

    HP 2019 Battery Recall has no reviews.

    Gravatar for Jonathan Haase
    Jonathan Haase about 2 years ago

    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.

    Gravatar for Jonathan Haase
    Jonathan Haase almost 2 years ago

    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. 

    Gravatar for Catherine Potridge
    Catherine Potridge over 1 year ago

    Hi Jonathan,

    I keep getting "Script Summary: Failed THEN in step 7 (Line 16)" and in the procedure log it shows "Access denied".  I've tried with Impersonate user as an admin and get the same result.

    What should I look at?