Install-LSUpdate #
SYNOPSIS #
Installs a Lenovo update package. Downloads it if not previously downloaded.
SYNTAX #
Install-LSUpdate [-Package] <PSObject> [-Path <DirectoryInfo>] [-SaveBIOSUpdateInfoToRegistry] [-Proxy <Uri>]
[-ProxyCredential <PSCredential>] [-ProxyUseDefaultCredentials] [<CommonParameters>]
DESCRIPTION #
Installs a Lenovo update package. Downloads it if not previously downloaded.
EXAMPLES #
Example 1 #
PS C:\> {{ Add example code here }}
{{ Add example description here }}
PARAMETERS #
-Package #
The Lenovo package object to install
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Path #
If you previously downloaded the Lenovo package to a custom directory, specify its path here so that the package can be found
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. Used if a package still needs to be downloaded before it can be installed.
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
-SaveBIOSUpdateInfoToRegistry #
If a BIOS update is successfully installed, write information about it to ‘HKLM\Software\LSUClient\BIOSUpdate’. This is useful in automated deployment scenarios, especially the ‘ActionNeeded’ key which will tell you whether a shutdown or reboot is required to apply the BIOS update. The created registry values will not be deleted by this module, only overwritten on the next installed BIOS Update.
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.