Skip to main content

Initialize HP Image Assistant

Overview​

This script keeps HP workstations up to date with drivers, BIOS, firmware, and HP software using HP Image Assistant (HPIA). It is part of the HP Image Assistant solution, which runs it weekly on HP devices where cPVAL HPIA Update Audit is set to Enable.

When to use:

  • Check which HP updates a device needs, without installing anything.
  • Install recommended driver updates.
  • Install BIOS and firmware updates during a maintenance window.
  • Set one standard update command per organization, location, or device.

How it works:

  • The script confirms that HPIA supports the device model. Unsupported models stop with an error.
  • HPIA is downloaded if it is not already on the device.
  • The command comes from the Arguments variable. When it is blank, the cPVAL HPIA Arguments custom field is used. When both are blank, the script only scans.
  • The script does not restart the device.

Requirements:

  • HP workstation running Windows 10 or Windows 11, on HP's supported platform list.
  • Runs elevated (System context).
  • Internet access to download HPIA and the updates.
  • Optional: the cPVAL HPIA Arguments custom field, to set a default command (Example 5).

Sample Run​

Example 1: Running the script to scan for available updates​

Leave Arguments blank and the cPVAL HPIA Arguments custom field empty. HPIA reports the device health and lists each recommended update with its type, name, installed version, and available version. Nothing is installed.

SampleRun1

Set Arguments to /Operation:Analyze /Category:Drivers /Selection:Recommended /Action:Install /Silent /AutoCleanup /ReportFilePath:C:\ProgramData\_Automation\App\HPImageAssistant\InstallReport. Recommended driver updates are installed silently, and downloaded files are removed afterwards. Keep /ReportFilePath in every install command; the script reads the install result from this report.

SampleRun2

Set Arguments to /Operation:Analyze /Category:BIOS,Firmware /Selection:Recommended /Action:Install /Silent /AutoCleanup /ReportFilePath:C:\ProgramData\_Automation\App\HPImageAssistant\InstallReport. Recommended BIOS and firmware updates are installed. They finish at the next restart, so run this during a maintenance window.

SampleRun3

Example 4: Running the script to install all available updates​

Set Arguments to /Operation:Analyze /Category:All /Selection:All /Action:Install /Silent /AutoCleanup /ReportFilePath:C:\ProgramData\_Automation\App\HPImageAssistant\InstallReport. Every available update is installed, including routine ones. Use this to bring a new or rebuilt device fully up to date.

SampleRun4

Example 5: Running the script with a default command from the custom field​

Set the cPVAL HPIA Arguments custom field at the organization, location, or device level, for example to the command from Example 2. Leave Arguments blank, and the custom field value is used. A value entered in Arguments always takes priority. Use this to control what the weekly Execute HP Image Assistant task runs for each organization, location, or device.

SampleRun5

Dependencies​

Parameters​

NameExampleAccepted ValuesRequiredDefaultTypeDescription
Arguments/Operation:Analyze /Category:Drivers /Selection:Recommended /Action:Install /Silent /AutoCleanup /ReportFilePath:C:\ProgramData\_Automation\App\HPImageAssistant\InstallReportAny command from the HPIA user guide.FalseEmptyString/TextThe HPIA command to run. When blank, the cPVAL HPIA Arguments custom field is used. When both are blank, the script only scans.

Custom Fields​

Field NameTypeMandatoryScopeDescription
cPVAL HPIA ArgumentsTextNoOrganization, Location, DeviceDefault HPIA command, used when Arguments is blank. A device value overrides a location value, and a location value overrides an organization value.

Automation Setup/Import​

Automation Configuration

Output​

  • Activity Details: The run log. A scan shows the device health and the recommended updates; an install shows the result of each update. Errors are reported in the activity output.
  • Install Report: Install commands save a .json report at the /ReportFilePath location, for example C:\ProgramData_Automation\App\HPImageAssistant\InstallReport.json.
  • Scan Report: A scan saves its results to C:\ProgramData_Automation\App\HPImageAssistant\UpdateReportPath\HPIAApplicableUpdates.xml.
  • Restart: When an update needs a restart, the activity shows a restart-required warning. Restart the device to finish the update.
  • Log Files: A copy of the run log is kept on the device in C:\ProgramData_Automation\Script\Initialize-HPImageAssistant.

Changelog​

2026-10-16​

  • Updated the document to the current template.
  • Corrected the script variable name to Arguments and documented the optional cPVAL HPIA Arguments custom field.
  • Added links to the HP Image Assistant solution and its components.
  • Replaced the Sample Run section with usage scenarios.

2026-03-06​

  • Initial version of the document