PowerTip: Produce List of Disabled Windows Features


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.

Comments (1)

  1. Steve says:

    This doesn’t work in Powershell V4.

Skip to main content