Get-MSIComponentInfo

Synopsis

Gets information about components registered to the current user and the machine.

Syntax

  • Get-MSIComponentInfo [[-ComponentCode] <String[]>]
  • Get-MSIComponentInfo [-ComponentCode] <String[]> [-ProductCode] <String>

Detailed 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? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-ProductCode <String>

The ProductCode of the product that installed the components to retrieve information.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

Return Type

  • Microsoft.Deployment.WindowsInstaller.ComponentInstallation: Information about the components installed or registered by one or multiple products.

Notes

Example 1

C:\PS> get-msicomponentinfo

This command gets all components installed or registered to the current user or to the machine.

Example 2

C:\PS> 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

Last edited May 15, 2009 at 10:41 PM by heaths, version 1

Comments

No comments yet.