Get-UscInstalledPackage
SYNOPSIS
Gets information about installed packages.
SYNTAX
any (Default)
Get-UscInstalledPackage [[-PackageId] <String>] [-Directory <String>] [<CommonParameters>]
By Instance Name
Get-UscInstalledPackage [[-PackageId] <String>] [[-InstanceName] <String>] [-Directory <String>]
[<CommonParameters>]
Hashtable
Get-UscInstalledPackage [[-PackageId] <String>] [[-InstanceName] <String>] -InputHashtable <Hashtable>
[-Directory <String>] [<CommonParameters>]
Only Instance
Get-UscInstalledPackage [[-PackageId] <String>] [-OnlyInstance] [-Directory <String>] [<CommonParameters>]
Not Instance
Get-UscInstalledPackage [[-PackageId] <String>] [-NotInstance] [-Directory <String>] [<CommonParameters>]
DESCRIPTION
Use the Get-UscInstalledPackage to get information about a specific installed package, or get a list of installed packages.
The list of packages can include all installed packages, filtered by instance or package ID.
EXAMPLES
Example 1
PS C:\> Get-UscInstalledPackage -Id 'go-current-client'
Id : go-current-client
Version : 0.18.0
VersionQuery : !^
InstanceName :
Arguments : {}
InstanceDirectory :
Selected : True
Info :
This example returns information about the specified package go-current-client.
Example 2
PS C:\> Get-UscInstalledPackage -InstanceName 'LSCentral'
Id : bc-web-client
Version : 17.0.20458.20517
VersionQuery : -_ >=17.0.20458.20517 <17.0.20458.20518
InstanceName : LSCentral
Arguments : {[Server, localhost], [ServerInstance, LSCentral], [ManagementServicesPort, 9045], [ClientServicesPort, 9046]...}
InstanceDirectory : C:\Program Files\LS Retail\Update Service\Instances\LSCentral
Selected : True
Info :
Id : bc-server
Version : 17.0.20458.20517
VersionQuery : -_ >=17.0.20458.20517 <17.0.20458.20518
InstanceName : LSCentral
Arguments : {[ServiceUser, NT AUTHORITY\NETWORK SERVICE], [ServicePassword, dummy], [ConnectionString, Data Source=localhost\SQLEXPRESS;Init
ial Catalog=LSCentral;Integrated Security=True], [ManagementServicesPort, 9045]...}
InstanceDirectory : C:\Program Files\LS Retail\Update Service\Instances\LSCentral
Selected : True
Info :
Id : bc-system-symbols
Version : 17.0.20458.20517
VersionQuery : -_ >=17.0.20458.20517 <17.0.20458.20518
InstanceName : LSCentral
Arguments : {[SymbolsOnly, True], [AllowForceSync, false]}
InstanceDirectory : C:\Program Files\LS Retail\Update Service\Instances\LSCentral
Selected : True
Info :
...
This example returns information about all packages installed under the specified instance.
Example 3
PS C:\> Get-UscInstalledPackage -InstanceName 'LSCentral' -Id 'bc-server'
Id : bc-server
Version : 17.0.20458.20517
VersionQuery : -_ >=17.0.20458.20517 <17.0.20458.20518
InstanceName : LSCentral
Arguments : {[ServiceUser, NT AUTHORITY\NETWORK SERVICE], [ServicePassword, dummy], [ConnectionString, Data Source=localhost\SQLEXPRESS;Init
ial Catalog=LSCentral;Integrated Security=True], [ManagementServicesPort, 9045]...}
InstanceDirectory : C:\Program Files\LS Retail\Update Service\Instances\LSCentral
Selected : True
Info :
This example returns information about the specified package bc-server in the LSCentral instance.
PARAMETERS
-Directory
Specifies an optional alternative client directory.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-InputHashtable
Type: Hashtable
Parameter Sets: Hashtable
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-InstanceName
Specifies an instance name to be returned.
Type: String
Parameter Sets: By Instance Name, Hashtable
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-NotInstance
Specifies no instance packages to be returned.
Type: SwitchParameter
Parameter Sets: Not Instance
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OnlyInstance
Specifies only instances to be returned.
Type: SwitchParameter
Parameter Sets: Only Instance
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PackageId
Specifies the package ID to get information for.
Type: String
Parameter Sets: (All)
Aliases: Id
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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.