Lammtech logo tagline

HP 2019 Battery Recall

Check HP 2019 Battery Recall Status

Description

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.

Developer
  • Name: Jonathan Haase
  • Company: LammTech
  • Website: http://www.lammtech.com
  • Contact Developer
  • Summary
  • HP 2019 Battery Recall
  • 33 Downloads
  • Version: 1.01
  • Released on April 9th, 2019
  • Reviews

    HP 2019 Battery Recall has no reviews.

    Discussion
    Gravatar for Jonathan Haase
    Jonathan Haase 6 months 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

    to 

    %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 6 months 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 about 2 months 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?