-
Notifications
You must be signed in to change notification settings - Fork 22
Get MSIPatchInfo
Gets patch information for registered patches.
Get-MSIPatchInfo [[-ProductCode] <String[]>] [[-PatchCode] <String[]>] [-Filter <PatchStates>]
[-UserContext <UserContexts>] [-UserSid <String>] [-Everyone] [<CommonParameters>]
Gets patch information for a given patch or for all patches registered to a given product or products. You can get patch information for machine-registered patches, and patch information for both user-managed- and user-unmanaged-registered patches for the current or another user.
get-msipatchinfo
This command outputs a table of patch information for all applied patches on the machine.
get-msipatchinfo -filter superseded | get-childitem
This command gets file information for superseded patches on the machine.
get-msiproductinfo | where-object {$_.Name -match "Office"} | get-msipatchinfo -filter all
This command gets patch information for all patches applied to products with "Office" in the name.
Whether to retrieve user-managed or user-unmanaged patches for everyone.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The state or states of patches to be retrieved. This can be a combination of "Applied", "Superseded", "Obsoleted", "Registered", or "All".
Type: PatchStates
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
The patch code or patch codes to retrieve patch information.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies the ProductCode or ProductCodes to get patch information.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The context for registered patches. This can be a combination of "Machine", "UserManaged", or "UserUnmanaged".
Type: UserContexts
Parameter Sets: (All)
Aliases: Context, InstallContext
Required: False
Position: Named
Default value: All
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The security identifier for a user for user-managed and user-unmanaged patches.
Type: String
Parameter Sets: (All)
Aliases: User
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
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