A complete guide to turning Windows components on or off, installing optional features, and enabling features from the command line when the graphical menu is not enough.
Windows 10 and Windows 11 include many built-in components that are not always enabled by default. These components can add virtualization, legacy compatibility, developer tools, printing options, network protocols, and administration utilities.
There are two similar but different areas in Windows:
Most components can be enabled safely, but some require administrator rights, Internet access, or a restart. Before changing anything, check the following:
This is the standard graphical method for enabling classic Windows components in both Windows 10 and Windows 11.
appwiz.cpl, and press Enter.Alternative path: Control Panel โ Programs โ Programs and Features โ Turn Windows features on or off.
The Settings app is the best place to install modern optional features, especially OpenSSH, RSAT tools, Wireless Display, fonts, language components, and viewers.
If you frequently enable or disable Windows components, the fastest way is to open the classic Windows Features dialog directly.
optionalfeatures or optionalfeatures.exe.optionalfeatures.exe
DISM is useful when the graphical window does not work, when you need an exact feature name, or when you are preparing a script for several computers.
Open Command Prompt as administrator and run:
DISM /Online /Get-Features /Format:Table
Use this command format:
DISM /Online /Enable-Feature /FeatureName:FEATURE-NAME /All
For example, to enable the legacy Telnet Client:
DISM /Online /Enable-Feature /FeatureName:TelnetClient /All
For example, to enable Internet Information Services core web server components:
DISM /Online /Enable-Feature /FeatureName:IIS-WebServerRole /All
/All parameter enables the parent features required by the component. Without it, DISM may fail if dependencies are not already enabled.
PowerShell provides a readable way to list, filter, enable, and disable Windows optional features.
Open Windows Terminal or PowerShell as administrator and run:
Get-WindowsOptionalFeature -Online | Where-Object State -eq Disabled | Sort-Object FeatureName
Use the following command format:
Enable-WindowsOptionalFeature -Online -FeatureName FEATURE-NAME -All
For example, to enable Windows Sandbox:
Enable-WindowsOptionalFeature -Online -FeatureName Containers-DisposableClientVM -All
For example, to enable Windows Subsystem for Linux:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -All
If PowerShell asks for confirmation, type Y and press Enter. Restart Windows after enabling features that require virtualization or kernel-level changes.
The exact list depends on your Windows version, edition, installed updates, and language pack. The components below are among the most commonly used.
Microsoft virtualization platform for running virtual machines. Usually requires Windows Pro, Enterprise, or Education.
A temporary isolated desktop environment for safely testing apps and files.
Required by older applications and some legacy business software.
Allows you to run Linux command-line tools and distributions on Windows.
Required for WSL 2 and some virtualization-based tools.
Windows web server components for development, testing, and local hosting.
A legacy network testing tool, often used for simple port connectivity checks.
Legacy file sharing protocol support. Enable only when required by old network devices.
| Component | Common Use | Restart Usually Required? | Notes |
|---|---|---|---|
| .NET Framework 3.5 | Older applications | No or Yes | May require Windows Update or installation media. |
| Hyper-V | Virtual machines | Yes | Requires CPU virtualization support. |
| Windows Sandbox | Isolated testing | Yes | Not available in all editions. |
| OpenSSH Client | SSH connections | No | Installed from Optional Features in Settings. |
| Wireless Display | Miracast receiving/projecting | Sometimes | Installed from Optional Features in Settings. |
| SMB 1.0/CIFS | Old NAS/printers | Yes | Use only when no modern SMB option is available. |
Some features require packages that Windows downloads automatically. Install pending updates, restart the PC, and try again.
If you see Access is denied, open Command Prompt, PowerShell, Windows Terminal, or the Control Panel item as an administrator.
If the Windows component store is damaged, feature installation may fail. Run these commands in an elevated Command Prompt:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
On work or school PCs, your organization may block feature installation, Windows Update downloads, or access to optional components.
If .NET Framework 3.5 fails to install online, mount a Windows ISO that matches your version and run:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs
Replace D: with the drive letter of your mounted Windows ISO.
Press Win + R, type optionalfeatures, and press Enter. This opens the classic Turn Windows features on or off window directly.
Not exactly. Windows Features usually refers to classic system components managed by optionalfeatures.exe. Optional Features in Settings usually refers to installable capabilities such as OpenSSH Client, RSAT tools, Wireless Display, fonts, and viewers.
The component may not be available in your Windows edition, may require a newer Windows build, or may be installed from Settings instead of the classic Windows Features dialog.
Enable SMB 1.0 only when you must connect to old devices that do not support modern SMB versions. For security reasons, it is better to update or replace old network storage, printers, or media devices whenever possible.
Open optionalfeatures.exe, clear the check box next to the component, click OK, and restart if prompted. In PowerShell, you can use Disable-WindowsOptionalFeature -Online -FeatureName FEATURE-NAME.
Some features work immediately, but components related to virtualization, networking, system services, or Windows internals often require a restart. If Windows asks you to restart, do it before troubleshooting the feature.
For most users, the easiest method is the classic Turn Windows features on or off dialog. Press Win + R, run optionalfeatures, select the component, and click OK.
Use the Settings app when you need modern optional capabilities such as OpenSSH Client, RSAT tools, Wireless Display, or language-related features. Use DISM or PowerShell when you need exact feature names, repeatable commands, or a way to enable features on multiple PCs.
Start with optionalfeatures.exe. If the feature is not listed there, check Settings โ Optional features. If both graphical methods fail, use DISM or PowerShell as administrator.