-
Notifications
You must be signed in to change notification settings - Fork 22
Get MSIProductInfo
Gets product information for registered products.
Get-MSIProductInfo [[-ProductCode] <String[]>] [-UserContext <UserContexts>] [-UserSid <String>] [-Everyone]
[<CommonParameters>]
Get-MSIProductInfo -Name <String[]> [-UserContext <UserContexts>] [-UserSid <String>] [-Everyone]
[<CommonParameters>]
Gets product information for all per-machine, user-managed, and user-unmanaged products on the machine.
get-msiproductinfo
This command outputs product information for all registered products assigned to this machine.
get-msiproductinfo | where-object {$_.Name -match "Visual Studio"}
This command outputs all product information for products with "Visual Studio" in the name assigned to this machine.
get-msiproductinfo -installcontext userunmanaged | where-object {$_.ProductState -eq "Installed"} | get-childitem
This command gets file information for all installed user-unmanaged products.
get-msiproductinfo "{1862162E-3BBC-448F-AA63-49F33152D54A}"
This command gets product information for the given ProductCode.
Whether to retrieve user-managed or user-unmanaged products for everyone.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of a product or products to retrieve. Wildcards are supported.
Type: String[]
Parameter Sets: Name
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
The ProductCode or ProductCodes to retrieve product information.
Type: String[]
Parameter Sets: Product
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The context for registered products. This can be a combination of "Machine", "UserManaged", or "UserUnmanaged".
Type: UserContexts
Parameter Sets: (All)
Aliases: Context, InstallContext
Required: False
Position: Named
Default value: All
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The security identifier for a user for user-managed and user-unmanaged products.
Type: String
Parameter Sets: (All)
Aliases: User
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Copyright (C) Microsoft Corporation. All rights reserved. Licensed under the MIT license. See LICENSE.txt in the project root for license information.
Commands
- Add-MSISource
- Clear-MSISource
- Edit-MSIPackage
- Export-MSIPatchXml
- Get-MSIComponentInfo
- Get-MSIComponentState
- Get-MSIFeatureInfo
- Get-MSIFileHash
- Get-MSIFileType
- Get-MSILoggingPolicy
- Get-MSIPatchInfo
- Get-MSIPatchSequence
- Get-MSIProductInfo
- Get-MSIProperty
- Get-MSIRelatedProductInfo
- Get-MSISharedComponentInfo
- Get-MSISource
- Get-MSISummaryInfo
- Get-MSITable
- Install-MSIAdvertisedFeature
- Install-MSIPatch
- Install-MSIProduct
- Measure-MSIProduct
- Remove-MSILoggingPolicy
- Remove-MSISource
- Repair-MSIProduct
- Set-MSILoggingPolicy
- Test-MSIProduct
- Uninstall-MSIPatch
- Uninstall-MSIProduct
Examples