Get-LSUpdate

Get-LSUpdate #

SYNOPSIS #

Fetches available driver packages and updates for Lenovo computers

SYNTAX #

Get-LSUpdate [[-Model] <String>] [[-Proxy] <Uri>] [[-ProxyCredential] <PSCredential>]
 [-ProxyUseDefaultCredentials] [-All] [-IncludePhantomDevices] [[-ScratchDirectory] <DirectoryInfo>]
 [[-Repository] <String>] [[-MachineCharacteristicsOverride] <Hashtable>] [-NoTestApplicable]
 [-NoTestInstalled] [-NoTestSeverityOverride] [-FailUnsupportedDependencies] [-PassUnsupportedInstallTests]
 [<CommonParameters>]

DESCRIPTION #

Fetches available driver packages and updates for Lenovo computers

EXAMPLES #

EXAMPLE 1 #

# Get available updates for the local computer
PS> Get-LSUpdate

EXAMPLE 2 #

# Get all available packages for a different computer model
PS> Get-LSUpdate -Model 20K70000GE -All

PARAMETERS #

-All #

Return all packages, regardless of whether they are applicable to this specific machine or whether they are already installed. E.g. this will return LTE-Modem drivers even on machines that do not have the optional LTE-Modem installed, or 32-bit drivers on a 64-bit OS. Attempting to install such inapplicable drivers will likely fail. Re-installing an already installed driver can sometimes be useful to fix a driver that got corrupted.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-FailUnsupportedDependencies #

Lenovo specifies different tests with each package to determine whether it is applicable to a machine or not. This module makes a best effort to parse, understand and check these. However, new kinds of tests may be added by Lenovo at any point and some currently in use are not supported yet either. By default, any unknown applicability tests will be treated as passed which may result in a package that is really not applicable being classified as applicable. This switch will make all unsupported applicability tests fail instead, which in turn could lead to an applicable package being detected as not applicable instead.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-IncludePhantomDevices #

Consider currently disconnected (phantom) devices as well when evaluating relevant packages.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-MachineCharacteristicsOverride #

Advanced usage: Pass a Hashtable to override information about the computer that is used to evaluate packages.

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: @{}
Accept pipeline input: False
Accept wildcard characters: False

-Model #

Specify an alternative Lenovo Computer Model to retrieve update packages for. You may want to use this together with ‘-All’ so that packages are not filtered against your local machines configuration.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-NoTestApplicable #

Do not check whether packages are applicable to the computer. The IsApplicable property of the package objects will be set to $null. This switch is only available together with -All.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-NoTestInstalled #

Do not check whether packages are already installed on the computer. The IsInstalled property of the package objects will be set to $null. This switch is only available together with -All.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-NoTestSeverityOverride #

Packages have a static severity classification, but may also contain a set of tests pertaining to currently installed hardware or drivers that, when passed, dynamically override and adjust the severity rating of a package up or down. By default, this module makes a best effort to parse, understand and check these. Use this parameter to skip all SeverityOverride tests instead and have all packages be returned with their static, default severity classification. This switch is available both with and without -All.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-PassUnsupportedInstallTests #

Lenovo specifies different tests with each package to determine whether it is already installed or not. This module makes a best effort to parse, understand and check these. However, new kinds of tests may be added by Lenovo at any point and some currently in use are not supported yet either. By default, any unknown install tests will be treated as failed which may result in a package that is already installed being classified as missing. This switch will make all unsupported install tests pass instead, which in turn could lead to a missing update being detected as installed instead.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
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: 2
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: 3
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

-Repository #

The path to a package repository. This can either be an HTTP(S) URL pointing to a webserver or a filesystem path to a directory.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: Https://download.lenovo.com/catalog
Accept pipeline input: False
Accept wildcard characters: False

-ScratchDirectory #

The path to a directory where temporary files are downloaded to for use during the search for packages. These files are cleaned up automatically. Defaults to $env:TEMP.

Type: DirectoryInfo
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: $env:TEMP
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 #

LenovoPackage #

NOTES #