Get-ADTMsiTableProperty
SYNOPSIS
Get all of the properties from a Windows Installer database table or the Summary Information stream and return as a custom object.
SYNTAX
TableInfo (Default)
Get-ADTMsiTableProperty -Path <String> [-TransformPath <String[]>] [-Table <String>]
[-TablePropertyNameColumnNum <Int32>] [-TablePropertyValueColumnNum <Int32>] [<CommonParameters>]
SummaryInfo
Get-ADTMsiTableProperty -Path <String> [-TransformPath <String[]>] [-GetSummaryInformation]
[<CommonParameters>]
DESCRIPTION
Use the Windows Installer object to read all of the properties from a Windows Installer database table or the Summary Information stream.
EXAMPLES
EXAMPLE 1
Get-ADTMsiTableProperty -Path 'C:\Package\AppDeploy.msi' -TransformPath 'C:\Package\AppDeploy.mst'
Retrieve all of the properties from the default 'Property' table.
EXAMPLE 2
(Get-ADTMsiTableProperty -Path 'C:\Package\AppDeploy.msi' -TransformPath 'C:\Package\AppDeploy.mst' -Table 'Property').ProductCode
Retrieve all of the properties from the 'Property' table, then retrieves just the 'ProductCode' member.
EXAMPLE 3
Get-ADTMsiTableProperty -Path 'C:\Package\AppDeploy.msi' -GetSummaryInformation
Retrieve the Summary Information for the Windows Installer database.
PARAMETERS
-Path
The fully qualified path to an database file. Supports .msi and .msp files.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-TransformPath
The fully qualified path to a list of MST file(s) which should be applied to the MSI file.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Table
The name of the the MSI table from which all of the properties must be retrieved.
Type: String
Parameter Sets: TableInfo
Aliases:
Required: False
Position: Named
Default value: MSI file: "Property"; MSP file: "MsiPatchMetadata"
Accept pipeline input: False
Accept wildcard characters: False
-TablePropertyNameColumnNum
Specify the table column number which contains the name of the properties.
Type: Int32
Parameter Sets: TableInfo
Aliases:
Required: False
Position: Named
Default value: MSI file: 1; MSP file: 2
Accept pipeline input: False
Accept wildcard characters: False
-TablePropertyValueColumnNum
Specify the table column number which contains the value of the properties.
Type: Int32
Parameter Sets: TableInfo
Aliases:
Required: False
Position: Named
Default value: MSI file: 2; MSP file: 3
Accept pipeline input: False
Accept wildcard characters: False
-GetSummaryInformation
Retrieves the Summary Information for the Windows Installer database.
Summary Information property descriptions: https://msdn.microsoft.com/en-us/library/aa372049(v=vs.85).aspx
Type: SwitchParameter
Parameter Sets: SummaryInfo
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
None
You cannot pipe objects to this function.
OUTPUTS
System.Collections.ObjectModel.ReadOnlyDictionary`2[[System.String],[System.Object]]
Returns a readonly dictionary with the properties as key/value pairs.
NOTES
An active ADT session is NOT required to use this function.
Tags: psadt
Website: https://psappdeploytoolkit.com
Copyright: (C) 2025 PSAppDeployToolkit Team (Sean Lillis, Dan Cunningham, Muhammad Mashwani, Mitch Richters, Dan Gough).
License: https://opensource.org/license/lgpl-3-0
RELATED LINKS
https://psappdeploytoolkit.com/docs/reference/functions/Get-ADTMsiTableProperty