October 5th, 2015

PowerTip: Produce List of Disabled Windows Features

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to produce a list of disabled Windows features.

Hey, Scripting Guy! Question How can I use Windows PowerShell to see what Windows features are disabled in my installation?

Hey, Scripting Guy! AnswerOpen an elevated Windows PowerShell console, use the Get-WindowsOptionalFeatures cmdlet, and specify
           that you want to run the command online. You may also want to filter the list by disabled state and sort the list,
           for example:

Get-WindowsOptionalFeature -Online | ? state -eq 'disabled' | select featurename | sort -Descending

Note  The ? is an alias for the Where-Object cmdlet.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback