Get-MyWindowsCapability

21.2.8.1+
PS C:\> Get-Help Get-MyWindowsCapability -Full
NAME
Get-MyWindowsCapability
SYNOPSIS
Gets Windows capabilities for an image or a running operating system. Modified version of Get-WindowsCapability
SYNTAX
Get-MyWindowsCapability [-State <String>] [-Category <String>] [-Culture <String[]>] [-Like <String[]>] [-Match <String[]>] [-Detail] [-DisableWSUS] [<CommonParameters>]
Get-MyWindowsCapability -Path <String> [-State <String>] [-Category <String>] [-Culture <String[]>] [-Like <String[]>] [-Match <String[]>] [-Detail] [<CommonParameters>]
DESCRIPTION
The Get-MyWindowsCapability function gets Windows capabilities installed in an image or running operating system
PARAMETERS
-Path <String>
Specifies the full path to the root directory of the offline Windows image that you will service.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-State <String>
Installation state of the Windows Capability
Get-MyWindowsCapability -State Installed
Get-MyWindowsCapability -State NotPresent
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Category <String>
Category of the Windows Capability
Get-MyWindowsCapability -Category Language
Get-MyWindowsCapability -Category Rsat
Get-MyWindowsCapability -Category Other
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Culture <String[]>
Culture of the Capability
Get-MyWindowsCapability -Culture 'de-DE'
Get-MyWindowsCapability -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 Capability Name for the specified string. Wildcards are permitted
Get-MyWindowsCapability -Like "*Dns*"
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Match <String[]>
Searches the Capability Name for a matching string. Wildcards are not permitted
Get-MyWindowsCapability -Match 'Dhcp'
Get-MyWindowsCapability -Match 'Dhcp','Rsat'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Detail [<SwitchParameter>]
Processes a foreach Get-WindowsCapability <Name> to get further details of the Windows Capability
Get-MyWindowsCapability -Detail
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-DisableWSUS [<SwitchParameter>]
Allows computers configured to Add-WindowsCapability from Windows Update
Temporarily sets the Group Policy 'Download repair content and optional features directly from Windows Update instead of Windows Server Update Services (WSUS)'
Restarts the Windows Update Service
Get-MyWindowsCapability -Culture es-es -Match Basic -State NotPresent -DisableWSUS | Add-WindowsCapability
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.ImageObject
NOTES
21.2.8.1 Initial Release
21.2.8.2 Added IsAdmin requirement
Added validation for Get-WindowsCapability
Resolved issue if multiple OSD modules are installed
Renamed Language parameter to Culture
21.2.9.1 Added DisableWSUS Parameter
Resolved issue with Like and Match parameters not working as expected
RELATED LINKS
https://osd.osdeploy.com/module/functions/dism/get-mywindowscapability
https://docs.microsoft.com/en-us/powershell/module/dism/get-windowscapability?view=win10-ps
Add-WindowsCapability
Get-WindowsCapability
Remove-WindowsCapability