New-HPBuildDriverPack



Summary

Creates a Driver Pack for a specified list of SoftPaqs

Syntax

New-HPBuildDriverPack [-Softpaqs] <Array> [[-Os] <String>] [[-OSVer] <String>] [[-Path] <DirectoryInfo>] [[-Format] <Object>] [-Name] <String> [[-Overwrite]] [<CommonParameters>]

Description

This command creates a Driver Pack for a specified list of SoftPaqs 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

Please note that this command is called in the New-HPDriverPack command if no errors occurred.

Parameters

Name Argument Description
Softpaqs <Array> Specifies a list of SoftPaqs to be included in the Driver Pack. Additionally, this parameter can be specified by piping the output of the Get-SoftpaqList command to this command.
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 Driver Pack directory. The current directory is used by default if this parameter is not specified.
Format <Object> Specifies the output format of the Driver Pack. The value must be one of the following values:
- NoCompressedFile
- ZIP
- WIM
Name <String> Specifies a custom name for the Driver Pack e.g. DP880D
Overwrite If specified, this command will force overwrite any existing file with the same name during 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.

Notes

  • Admin privilege is required.
  • Running this command in PowerShell ISE is not supported and may produce inconsistent results.

Examples


PS C:\> Get-SoftpaqList -platform 880D -os 'win10' -osver '21H2' | New-HPBuildDriverPack -Os Win10 -OsVer 21H1 -Name 'DP880D'

PS C:\> Get-SoftpaqList -platform 880D -os 'win10' -osver '21H2' | New-HPBuildDriverPack -Format Zip -Os Win10 -OsVer 21H1 -Name 'DP880D'

PS C:\> Get-SoftpaqList -platform 880D -os 'win10' -osver '21H2' | ?{$_.DPB -Like 'true' -and $_.id -notin @('sp137116') -and $_.name -notmatch 'AMD|USB'} | New-HPBuildDriverPack -Path 'C:\MyDriverPack' -Format Zip -Os Win10 -OsVer 21H1 -Name 'DP880D'