New-HPUWPDriverPack



Summary

Creates a UWP Driver Pack for a specified platform ID

Syntax

New-HPUWPDriverPack [[-Platform] <String>] [[-Os] <String>] [[-OSVer] <String>] [[-Path] <DirectoryInfo>] [[-UnselectList] <Array>] [[-Format] <String>] [[-Url] <String>] [[-Overwrite]] [[-TempDownloadPath] <DirectoryInfo>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

This command retrieves SoftPaqs for a specified platform ID to build a UWP Driver Pack in the following formats:

  • NoCompressedFile - All drivers saved in a regular folder
  • ZIP - All drivers compressed in a ZIP file
  • WIM - All drivers packed in a Windows Imaging Format

Parameters

Name Argument Description
Platform <String> Specifies a platform ID to retrieve a list of associated SoftPaqs. If not available, the current platform ID is used.
Os <String> Specifies an OS for this command to filter based on. The value must be 'win10' or 'win11'. If not specified, the current platform OS is used.
OSVer <String> Specifies an OS version for this command to filter based on. The value must be a string value specifying the target OS Version (e.g. '1809', '1903', '1909', '2004', '2009', '21H1', '21H2', '22H2', '23H2', '24H2', etc). If this parameter is not specified, the current operating system version is used.
Path <DirectoryInfo> Specifies an absolute path for the UWP Driver Pack directory. The current directory is used by default if this parameter is not specified.
UnselectList <Array> Specifies a list of SoftPaq numbers and SoftPaq names to not be included in the UWP Driver Pack. A partial name can be specified. Examples include 'Docks', 'USB', 'sp123456'.
Format <String> Specifies the output format of the Driver Pack. The value must be one of the following values:
- NoCompressedFile
- ZIP
- WIM
Url <String> Specifies an alternate location for the HP Image Assistant (HPIA) reference files. This URL must be HTTPS. The Reference files are expected to be at the location pointed to by this URL inside a directory named after the platform ID you want a SoftPaq list for. If not specified, https://hpia.hpcloud.hp.com/ref is used by default.

For example, if you want to point to 8A05 Win11 OSVer 22H2 reference files, New-HPUWPDriverPack will try to find them in this directory structure: $ReferenceUrl/8a05/8a05_64_11.0.22h2.cab
Overwrite If specified, this command will force overwrite any existing file with the same name during UWP Driver Pack creation.
TempDownloadPath <DirectoryInfo> Specifies an alternate temporary location to download content. Please note that this location and all files inside will be deleted once driver pack is created. If not specified, the default temporary directory path is used.
WhatIf If specified, the UWP Driver Pack is not created, and instead, the list of SoftPaqs that would be included in the UWP Driver Pack is displayed.
Confirm

Notes

  • Admin privilege is required.
  • Running this command in PowerShell ISE is not supported and may produce inconsistent results.
  • Currently only platform generations G8 and above are supported, and operating systems 22H2 and above.

Examples


PS C:\> New-HPUWPDriverPack -WhatIf

PS C:\> New-HPUWPDriverPack -Platform 8A05 -OS 'win11' -OSVer '22H2' -Path 'C:\MyDriverPack' -Unselectlist 'sp140688','Wacom' -WhatIf

PS C:\> New-HPUWPDriverPack -Platform 8A05 -OS 'win10' -OSVer '22H2' -Path 'C:\MyDriverPack' -Unselectlist 'sp140688','Wacom' -Format ZIP