Skip to main content

Hi,

We have around 600 HP endpoints.  I’d like to run HPImageAssistant.exe to silently install all drivers.  Previously I’ve used a scheduled task/GPO, but I’m hoping some one might have some knowledge on how to do this via a Worklet.  The file will need copying to the local machine too, again not sure if this is how the Payload works?

This is the script I’ve used before:

C:\HPIA\HPImageAssistant.exe /Operation:Analyze /Action:Install /Selection:All /Silent /ReportFolder:C:\HPIA\Logs /SoftpaqDownloadFolder:C:\HPIA\Drivers

I’m really not sure how to achieve this - any help would be appreciated. 

Thanks,

Matt

Hi ​@mattclark ,

This is entirely doable via a Worklet, you could build this with a payload yet that creates another package to keep up with. It took a little time, and I’ve designed a Worklet you can try out. It is offered as-is, and it should server well as a working example of how you could automate HPIA-based driver updates via Automox. 

The script:

  • Pulls the latest HPIA automatically (no payloads needed)

  • Installs it silently and suppresses the UI

  • Silently runs your exact command

  • Creates output folders

  • Skips non-HP devices (even if it runs, it won’t run the entire script)


Here’s a link to my Github Gist: 
» https://gist.github.com/ax-askrodzki/140fbf28b01b243c64f4d664f78b2071


Feel free to test it out and leave us some feedback!

Best,
Angelo S.


Thank you for the reply Angelo.  Its not working, I’m getting this in the Activity log:

 

C:\Program Files (x86)\Automox\execDir3770578082\execcmd1284112831.ps1 : Timed out waiting for: 
C:\SWSetup\sp158107\HPImageAssistant.exe
    + CategoryInfo          : NotSpecified: (:) cWrite-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,execcmd1284112831.ps1

 

There doesn’t appear to be any folders created in that location on the machine.

Could you advise please?

 

Thank you,

Matt


Review to see if there’s anything blocking your code from deploying and UAC may be blocking the code from running if not run with administrative access. Modify the code increasing the permissions. I was able to make the code run. Again, I’ve offered the code as-is for testing yet I am considering a more robust follow up version.