Get-Softpaq



Summary

Downloads a SoftPaq from ftp.hp.com or from a specified alternate server

Syntax

Get-Softpaq [-Number <String>] [-SaveAs <String>] [-FriendlyName] [-Quiet] [-Overwrite <String>] [[-Action] <String>] [-Url <String>] [-KeepInvalidSigned] [-MaxRetries <Int32>] [-Extract] [-DestinationPath <String>] [<CommonParameters>]

Get-Softpaq [-Number] <String> [[-SaveAs] <String>] [[-FriendlyName]] [[-Quiet]] [[-Overwrite] <String>] [[-Action] <String>] [[-Url] <String>] [[-KeepInvalidSigned]] [[-MaxRetries] <Int32>] [<CommonParameters>]

Get-Softpaq [-Number] <String> [[-SaveAs] <String>] [[-FriendlyName]] [[-Quiet]] [[-Overwrite] <String>] [[-Url] <String>] [[-KeepInvalidSigned]] [[-MaxRetries] <Int32>] [-Extract] [-DestinationPath <String>] [<CommonParameters>]

Description

This command downloads a SoftPaq from the default download server (ftp.hp.com) or from a specified alternate server. If using the default server, the download is performed over HTTPS. Otherwise, the protocol is dictated by the URL parameter.

If a SoftPaq is either unavailable to download or has been obsoleted on the server, this command will display a warning that the SoftPaq could not be retrieved.

The Get-Softpaq command is not supported in WinPE.

Parameters

Name Argument Description
Number <String> Specifies the SoftPaq number for which to retrieve the metadata. Do not include any prefixes like 'SP' or any extensions like '.exe'. Please specify the SoftPaq number only.
SaveAs <String> Specifies a specific name to save the SoftPaq as. Otherwise, the name the SoftPaq will be saved as is inferred based on the remote name or the SoftPaq metadata if the FriendlyName parameter is specified.
FriendlyName Specifies a friendly name for the downloaded SoftPaq based on the SoftPaq number and title
Quiet If specified, this command will suppress non-essential messages during execution.
Overwrite <String> Specifies the the overwrite behavior.
The possible values include:
"no" = (default if this parameter is not specified) do not overwrite existing files
"yes" = force overwrite
"skip" = skip existing files without any error
Action <String> Specifies the SoftPaq action this command will execute after download. The value must be either 'install' or 'silentinstall'. Silentinstall information is retrieved from the SoftPaq metadata (CVA) file.
If DestinationPath parameter is also specified, this value will be used as the location to save files.
Url <String> Specifies an alternate location for the SoftPaq URL. This URL must be HTTPS. The SoftPaqs are expected to be at the location pointed to by this URL. If not specified, ftp.hp.com is used via HTTPS protocol.
KeepInvalidSigned If specified, this command will not delete any files that failed the signature authentication check. This command performs a signature authentication check after a download. By default, this command will delete any downloaded file with an invalid or missing signature.
MaxRetries <Int32> Specifies the maximum number of retries allowed to obtain an exclusive lock to downloaded files. This is relevant only when files are downloaded into a shared directory and multiple processes may be reading or writing from the same location.

Current default value is 10 retries, and each retry includes a 30 second pause, which means the maximum time the default value will wait for an exclusive logs is 300 seconds or 5 minutes.
Extract If specified, this command extracts SoftPaq content to a specified destination folder. Specify the destination folder with the DestinationPath parameter. If the DestinationPath parameter is not specified, the files are extracted into a new sub-folder relative to the downloaded SoftPaq executable.
DestinationPath <String> Specifies the path to the folder in which you want to save downloaded and/or extracted files. Do not specify a file name or file name extension. If not specified, the executable is downloaded to the current folder, and the files are extracted into a new sub-folder relative to the downloaded executable.

Examples


PS C:\> Get-Softpaq -Number 1234

PS C:\> Get-Softpaq -Number 1234 -Extract -DestinationPath "c:\staging\drivers"

See also