Save-LSUpdate

Save-LSUpdate #

SYNOPSIS #

Downloads Lenovo update packages to disk

SYNTAX #

Save-LSUpdate [-Package] <PSObject> [-Proxy <Uri>] [-ProxyCredential <PSCredential>]
 [-ProxyUseDefaultCredentials] [-ShowProgress] [-Force] [-Path <DirectoryInfo>] [<CommonParameters>]

DESCRIPTION #

Downloads Lenovo update packages to disk

EXAMPLES #

Example 1 #

PS C:\> {{ Add example code here }}

{{ Add example description here }}

PARAMETERS #

-Force #

Redownload and overwrite packages even if the files already exist in the target path.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Package #

The Lenovo package or packages to download

Type: PSObject
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Path #

The target directory to download the packages to. In this directory, a subfolder will be created for each downloaded package containing its files.

Type: DirectoryInfo
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: "$env:TEMP\LSUPackages"
Accept pipeline input: False
Accept wildcard characters: False

-Proxy #

Specifies the URL of a proxy server to use for the connection to the update repository.

Type: Uri
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: $script:LSUClientConfiguration.Proxy
Accept pipeline input: False
Accept wildcard characters: False

-ProxyCredential #

Specifies a user account that has permission to use the proxy server that is specified by the -Proxy parameter.

Type: PSCredential
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: $script:LSUClientConfiguration.ProxyCredential
Accept pipeline input: False
Accept wildcard characters: False

-ProxyUseDefaultCredentials #

Indicates that the cmdlet uses the credentials of the current user to access the proxy server that is specified by the -Proxy parameter.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: $script:LSUClientConfiguration.ProxyUseDefaultCredentials
Accept pipeline input: False
Accept wildcard characters: False

-ShowProgress #

Shows a progress animation during the downloading process, recommended for interactive use as downloads can be quite large and without any progress output the script may appear stuck

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters #

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS #

OUTPUTS #

NOTES #