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|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

-ProductCode <String>

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

Required? true
Position 1
Default value|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

Outputs

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

Examples

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


Last edited Dec 26, 2014 at 6:26 AM by heaths, version 1

Comments

No comments yet.