This tutorial will show you how to add and remove optional features for all users in Windows 11.
You can add optional features in Windows 11 for extra functionality for your device.
You must be signed in as an administrator to add and remove optional features and Windows features.
Features listed in Optional Features vs Windows Features will be different, so you may need to check both for the feature(s) you want to add or remove.
- Option One: Add or Remove Optional Features in Settings
- Option Two: Add or Remove Windows Features in Windows Features
- Option Three: Add or Remove Optional Features using DISM Command
- Option Four: Add or Remove Windows Features using DISM Command
- Option Five: Add or Remove Windows Features in PowerShell
1 Open Settings (Win+I).
2 Click/tap on Apps on the left side, and click/tap on Optional features on the right side. (see screenshot below)
3 Do step 4 (add) or step 5 (remove) below for what you want.
1 Open Windows Features (OptionalFeatures.exe).
2 Check (add) and uncheck (remove) the feature(s) you want, and click/tap on OK. (see screenshot below)
If Windows Features is empty or blank, then double check to make sure that the Windows Modules Installer service is enabled and set to Automatic.
3 If prompted to restart the computer, click/tap on Restart now to finish adding or removing the feature(s). (see screenshot below)
To see more command usage details for this option, see: DISM Capabilities Package Servicing Command-Line Options | Microsoft Docs
1 Open Windows Terminal (Admin), and select Windows PowerShell or Command Prompt.
2 Copy and paste the command below into Windows Terminal (Admin), and press Enter to see the current State of optional features as Installed (added) or Not Present (removed).
DISM /Online /Get-Capabilities /Format:Table
Make note of the Capability Identity (ex: "App.WirelessDisplay.Connect~~~~0.0.1.0") you want to add or remove. (see screenshot below)
3 Type the command below you want to use into Windows Terminal (Admin), and press Enter. (see screenshots below)
DISM /Online /Add-Capability /CapabilityName:<name>
DISM /Online /Remove-Capability /CapabilityName:<name>
Substitute name in the command above with the actual name (ex: "App.WirelessDisplay.Connect~~~~0.0.1.0") of the optional feature from step 2 you want to add or remove.
For example:
DISM /Online /Add-Capability /CapabilityName:App.WirelessDisplay.Connect~~~~0.0.1.0
DISM /Online /Remove-Capability /CapabilityName:App.WirelessDisplay.Connect~~~~0.0.1.0
4 If prompted to restart the computer, type Y to restart now.
To see more command usage details for this option, see: Enable or Disable Windows Features Using DISM | Microsoft Docs
1 Open Windows Terminal (Admin), and select Windows PowerShell or Command Prompt.
2 Copy and paste the command below into Windows Terminal (Admin), and press Enter to see the current State of optional features as Installed (added) or Not Present (removed).
DISM /Online /Get-Features /Format:Table
Make note of the Feature Name (ex: "Containers-DisposableClientVM") you want to add or remove. (see screenshot below)
3 Type the command below you want to use into Windows Terminal (Admin), and press Enter. (see screenshots below)
DISM /Online /Enable-Feature /FeatureName:"<name>" /All
DISM /Online /Disable-Feature /FeatureName:"<name>"
Substitute name in the command above with the actual name (ex: "Containers-DisposableClientVM") of the optional feature from step 2 you want to add or remove.
For example:
DISM /Online /Add-Capability /CapabilityName:"Containers-DisposableClientVM"
DISM /Online /Remove-Capability /CapabilityName:"Containers-DisposableClientVM"
4 If prompted to restart the computer, type Y to restart now.
To see more command usage details for this option, see:
Get-WindowsOptionalFeature | Microsoft Docs
Enable-WindowsOptionalFeature | Microsoft Docs
Disable-WindowsOptionalFeature | Microsoft Docs
1 Open Windows Terminal (Admin), and select Windows PowerShell.
2 Copy and paste the command below into Windows Terminal (Admin), and press Enter to see the current State of optional features as Enabled (added) or Disabled (removed).
Get-WindowsOptionalFeature -Online | FT
Make note of the Feature Name (ex: "Containers-DisposableClientVM") you want to add or remove. (see screenshot below)
3 Type the command below you want to use into Windows Terminal (Admin), and press Enter. (see screenshots below)
Enable-WindowsOptionalFeature -Online -FeatureName "<name>" -All
Disable-WindowsOptionalFeature -Online -FeatureName "<name>"
Substitute name in the command above with the actual name (ex: "Containers-DisposableClientVM") of the optional feature from step 2 you want to add or remove.
For example:
Enable-WindowsOptionalFeature -Online -FeatureName "Containers-DisposableClientVM" -All
Disable-WindowsOptionalFeature -Online -FeatureName "Containers-DisposableClientVM"
4 If prompted to restart the computer, type Y and press Enter to restart now.
That's it,
Shawn Brink