This project is read-only.

Get-MSIComponentState

Synopsis

Gets the install state for all authored components for one or more products installed on the machine.

Syntax

Get-MSIComponentState [-Product] <ProductInstallation[]> [<CommonParameters>]

Get-MSIComponentState [-ProductCode] <string[]> [-UserContext <UserContexts>] [-UserSid <string>] [<CommonParameters>]

Description

Gets the install state for all components authored into one or more products. This includes all patches applied to the product. In addition to the information returned from Get-MSIComponentInfo, the authored component identifier from the Component table is attached along with a simple boolean property that determines if the component is installed locally or not.

Parameters

-Product <Microsoft.Deployment.WindowsInstaller.ProductInstallation[]>

The products for which authored component state is retrieved.

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

-ProductCode <string[]>

The installed ProductCodes that define the components for which state information is retrieved.

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

-UserContext <Microsoft.Deployment.WindowsInstaller.UserContexts>

The context for registered products. This can be a combination of "Machine", "UserManaged", or "UserUnmanaged".

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

-UserSid <String>

The security identifier for a user for user-managed and user-unmanaged products.

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

Inputs

  • Microsoft.Deployment.WindowsInstaller.ProductInstallation: Products for which authored component state is retrieved.

Outputs

  • Microsoft.Deployment.WindowsInstaller.ComponentInstallation#State: State information about the components authored into one or more products and applied patches.

Examples

Example 1

get-msicomponentstate "{877EF582-78AF-4D84-888B-167FDC3BCC11}"
Gets state information for all components authored into the product "{877EF582-78AF-4D84-888B-167FDC3BCC11}" and all applied patches.

Example 2

get-msiproductinfo -name *TEST* | get-msicomponentstate
Gets state information for all components authored into any product where the ProductName matches TEST.

Related Links


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

Comments

No comments yet.