Today, we will see how to generate a list of disabled features on your Windows 11 /10 computer using Windows PowerShell. To do this, use the Get-WindowsOptionalFeatures cmdlet and specify that you want to run it online.
Generate Disabled Features list in Windows using PowerShell
To generate a list of the disabled features on your Windows 11/10 computer, open an elevated PowerShell console, type the following command and hit Enter:
Get-WindowsOptionalFeature -Online | ? state -eq 'disabled' | select featurename | sort -Descending
To open an elevated PowerShell prompt, in the taskbar search, type powershell. Now see the result of Windows PowerShell, which appears at the top. Right-click on it and select Run as Administrator.
You can now see a list of disabled Windows features on your computer.

More commands:
Get-WindowsOptionalFeature -Online retrieves all optional features available in your current Windows installation
Where-Object {$_.State -eq "Disabled"} filters only those features that are disabled.
Select-Object FeatureName, State displays the feature name and its state for clarity.
Get-WindowsOptionalFeature -Online | Where-Object {$_.State -eq "Disabled"} | Select-Object FeatureName, State | Out-File "DisabledFeatures.txt" exports the list to a text file for documentation.
Now take a look at how to generate a list of Windows Services using PowerShell.
How do I get a list of Windows features in PowerShell?
To get a list of all Windows features using PowerShell, you can use a simple command: Get-WindowsFeature | where{$_.InstallState -eq "Installed"}. This command works on Windows 11 as well as Windows 10. However, you need to use an elevated PowerShell session or a Windows Terminal window.
How do I turn Windows features on or off in PowerShell?
To turn Windows features on or off in PowerShell, you need to obtain the list of all features first using this command: get-windowsoptionalfeature -online. Then, you need to enter a command in this format: get-windowsoptionalfeature -online -featurename NetFx3. Don’t forget to replace the featurename with the original name of the feature.
If you are looking for more PowerShell tips, these links may interest you:
- List Drives using Command Prompt & PowerShell
- Get Installed Driver list and details using PowerShell.