HP Driver Packs Download & CM Import via PowerShell

Update: a few small mods to the Script after a conversation with Nathan from HP.

This script will Allow you to Check and Update your HP Drive Packs that you have CM Legacy Packages For.  Email Notification When Complete, because you don’t want to sit around and wait for all this to happen.  Also, not all of the code in the script is used, This script is a basic template I use for Both Drivers & BIOS for both Dell & HP.  Feel free to clean it up.

In the script you Specify your Models, their Product ID, and the Package ID in CM

image

It then grabs the latest Driver Pack Info from HP, compares it to your Package and updates if needed.

Process: (For Each Model)

  • Get SoftPaq Info for Latest Driver pack
  • Get Package Versions
  • If SoftPaq Version newer than Package Version, Download
    • Downloads SoftPaq EXE to Archive Directory
    • Extract SoftPaq to Local Temp Location
    • Deletes Current Package Source
    • Copies Updated Package Source Files to Package Source
    • Creates XML file of Softpaq Info in Source Folder
    • Updates CM Package Info
    • Updates DPs

Directory Paths are all Variables, so change to fit your standards.

Archive Directory:
image
image
image

 

Package Source Directory:
image

In the Console:
image

Email Notification:
image

 

Script:

 

 

GARYTOWN.COM

Leave a Comment

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