< Back
Get-MSIComponentInfo
Post
NAME Get-MSIComponentInfo
SYNOPSIS
Gets information about components registered to the current user and the machine.
SYNTAX
Get-MSIComponentInfo [[-ComponentCode] <String[]>] [<CommonParameters>]
Get-MSIComponentInfo [-ComponentCode] <String[]> [-ProductCode] <String> [<CommonParameters>]
DESCRIPTION
Gets information about all the components registered to the current user and to the machine. You can also limit
the components to only those installed by a particular product.
The information includes the state of the component and the path all based on the product that installed it, since
multiple products can install the same component even to different locations.
PARAMETERS
-ComponentCode <String[]>
The component GUIDs to retrieve information.
Required? false
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ProductCode <String>
The ProductCode of the product that installed the components to retrieve information.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Microsoft.Deployment.WindowsInstaller.ComponentInstallation
NOTES
-------------------------- EXAMPLE 1 --------------------------
get-msicomponentinfo
This command gets all components installed or registered to the current user or to the machine.
-------------------------- EXAMPLE 2 --------------------------
get-msiproductinfo "{90120000-00BA-0409-0000-0000000FF1CE}" | get-msicomponentinfo -componentcode
"{90120000-00BA-0409-0000-0E32E9F6E558}"
This command gets information for the component "{90120000-00BA-0409-0000-0E32E9F6E558}" installed by the product
"{90120000-00BA-0409-0000-0000000FF1CE}".
RELATED LINKS
Get-MSIComponentState
SYNOPSIS
Gets information about components registered to the current user and the machine.
SYNTAX
Get-MSIComponentInfo [[-ComponentCode] <String[]>] [<CommonParameters>]
Get-MSIComponentInfo [-ComponentCode] <String[]> [-ProductCode] <String> [<CommonParameters>]
DESCRIPTION
Gets information about all the components registered to the current user and to the machine. You can also limit
the components to only those installed by a particular product.
The information includes the state of the component and the path all based on the product that installed it, since
multiple products can install the same component even to different locations.
PARAMETERS
-ComponentCode <String[]>
The component GUIDs to retrieve information.
Required? false
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ProductCode <String>
The ProductCode of the product that installed the components to retrieve information.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Microsoft.Deployment.WindowsInstaller.ComponentInstallation
NOTES
-------------------------- EXAMPLE 1 --------------------------
get-msicomponentinfo
This command gets all components installed or registered to the current user or to the machine.
-------------------------- EXAMPLE 2 --------------------------
get-msiproductinfo "{90120000-00BA-0409-0000-0000000FF1CE}" | get-msicomponentinfo -componentcode
"{90120000-00BA-0409-0000-0E32E9F6E558}"
This command gets information for the component "{90120000-00BA-0409-0000-0E32E9F6E558}" installed by the product
"{90120000-00BA-0409-0000-0000000FF1CE}".
RELATED LINKS
Get-MSIComponentState