Get-MyWindowsPackage

21.2.8.1+
PS C:\> Get-Help Get-MyWindowsPackage -Full
NAME
Get-MyWindowsPackage
SYNOPSIS
Gets information about packages in a Windows image. Modified version of Get-WindowsPackage
SYNTAX
Get-MyWindowsPackage [-PackageState <String>] [-ReleaseType <String>] [-Category <String>] [-Culture <String[]>] [-Like <String[]>] [-Match <String[]>] [-Detail] [<CommonParameters>]
Get-MyWindowsPackage -Path <String> [-PackageState <String>] [-ReleaseType <String>] [-Category <String>] [-Culture <String[]>] [-Like <String[]>] [-Match <String[]>] [-Detail] [<CommonParameters>]
DESCRIPTION
The Get-MyWindowsPackage cmdlet gets information about all packages in a Windows image or about a specific package that is provided as a .cab file.
PARAMETERS
-Path <String>
Specifies the full path to the root directory of the offline Windows image that you will service.
Get-MyWindowsPackage -Path C:\Temp\MountedWim
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-PackageState <String>
Installation state of the Windows Package
Get-MyWindowsPackage -PackageState Installed
Get-MyWindowsPackage -PackageState Superseded
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ReleaseType <String>
ReleaseType of the Windows Package
Get-MyWindowsPackage -ReleaseType FeaturePack
Get-MyWindowsPackage -ReleaseType Foundation
Get-MyWindowsPackage -ReleaseType LanguagePack
Get-MyWindowsPackage -ReleaseType OnDemandPack
Get-MyWindowsPackage -ReleaseType SecurityUpdate
Get-MyWindowsPackage -ReleaseType Update
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Category <String>
Category of the Windows Package
Get-MyWindowsPackage -Category FOD
Get-MyWindowsPackage -Category Language
Get-MyWindowsPackage -Category LanguagePack
Get-MyWindowsPackage -Category Update
Get-MyWindowsPackage -Category Other
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Culture <String[]>
Culture of the Package
Get-MyWindowsPackage -Culture 'de-DE'
Get-MyWindowsPackage -Culture 'de-DE','es-ES','fr-FR'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Like <String[]>
Searches the PackageName for the specified string. Wildcards are permitted
Get-MyWindowsPackage -Like "*Tools*"
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Match <String[]>
Searches the Package Name for a matching string. Wildcards are not permitted
Get-MyWindowsPackage -Match 'Tools'
Get-MyWindowsPackage -Match 'Tools','FoD'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Detail [<SwitchParameter>]
Processes a foreach Get-WindowsPackage <PackageName> to get further details of the Windows Package
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
Microsoft.Dism.Commands.BasicPackageObject
Microsoft.Dism.Commands.AdvancedPackageObject
NOTES
21.2.8.1 Initial Release
21.2.8.2 Added IsAdmin requirement
Added validation for Get-WindowsPackage
Resolved issue if multiple OSD modules are installed
Renamed Language parameter to Culture
21.2.9.1 Resolved issue with Like and Match parameters not working as expected
RELATED LINKS
https://osd.osdeploy.com/module/functions/dism/get-mywindowspackage
https://docs.microsoft.com/en-us/powershell/module/dism/get-windowspackage?view=win10-ps
Add-WindowsPackage
Get-WindowsPackage
Remove-WindowsPackage