Get MSIPatchSequence
Given a list of patches or patch XML, outputs the sequence of applicable patches for a product or products.
Get-MSIPatchSequence [-Path] <String[]> [-PackagePath] <String[]> [<CommonParameters>]
Get-MSIPatchSequence [-Path] <String[]> [-ProductCode] <String[]> [-UserContext <UserContexts>]
[-UserSid <String>] [<CommonParameters>]
Get-MSIPatchSequence -LiteralPath <String[]> [-PackagePath] <String[]> [<CommonParameters>]
Get-MSIPatchSequence -LiteralPath <String[]> [-ProductCode] <String[]> [-UserContext <UserContexts>]
[-UserSid <String>] [<CommonParameters>]
Patch packages or patch XML files can be specified along with a list of products. Each patch is added to a list and after all patches specified are processed, the sequence for all applicable patches is output for each product specified.
By default, the table format is used with a grouping for each product specified.
PS C:\> {{ Add example code here }}
{{ Add example description here }}
The path to a package to open. The value of -LiteralPath is used exactly as typed. No characters are interpreted as wildcards.
Type: String[]
Parameter Sets: LiteralPath,PackagePath, LiteralPath,ProductCode
Aliases: PSPath
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The path to a product package or packages for which the patch sequence is returned.
Type: String[]
Parameter Sets: Path,PackagePath, LiteralPath,PackagePath
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The path to a package to open. Wildcards are permitted. You can specify * in any part of the path to select all matching files.
Type: String[]
Parameter Sets: Path,PackagePath, Path,ProductCode
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: True
The ProductCode or ProductCodes for products for which the patch sequence is returned.
Type: String[]
Parameter Sets: Path,ProductCode, LiteralPath,ProductCode
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The user context for the product listed in the ProductCode parameter.
Type: UserContexts
Parameter Sets: Path,ProductCode, LiteralPath,ProductCode
Aliases: Context, InstallContext
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The user security identifier for product listed in the ProductCode parameter.
Type: String
Parameter Sets: Path,ProductCode, LiteralPath,ProductCode
Aliases: User
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Copyright (C) Microsoft Corporation. All rights reserved. Licensed under the MIT license. See LICENSE.txt in the project root for license information.
Commands
- Add-MSISource
- Clear-MSISource
- Edit-MSIPackage
- Export-MSIPatchXml
- Get-MSIComponentInfo
- Get-MSIComponentState
- Get-MSIFeatureInfo
- Get-MSIFileHash
- Get-MSIFileType
- Get-MSILoggingPolicy
- Get-MSIPatchInfo
- Get-MSIPatchSequence
- Get-MSIProductInfo
- Get-MSIProperty
- Get-MSIRelatedProductInfo
- Get-MSISharedComponentInfo
- Get-MSISource
- Get-MSISummaryInfo
- Get-MSITable
- Install-MSIAdvertisedFeature
- Install-MSIPatch
- Install-MSIProduct
- Measure-MSIProduct
- Remove-MSILoggingPolicy
- Remove-MSISource
- Repair-MSIProduct
- Set-MSILoggingPolicy
- Test-MSIProduct
- Uninstall-MSIPatch
- Uninstall-MSIProduct
Examples