PowerTip: Use PowerShell to Find Disabled Features in Windows 8

Summary: Use Windows PowerShell to find disabled Windows features in Windows 8.

Hey, Scripting Guy! Question How can I use Windows PowerShell 3.0 in Windows 8 to find disabled Windows features?

Hey, Scripting Guy! Answer Use the Get-WindowsOptionalFeature cmdlet with the –online parameter and filter for a state of disabled (note this command must run with elevated permissions):

Get-WindowsOptionalFeature -Online | ? state -EQ ‘disabled’


Comments (3)

  1. mredwilson says:

    @JRV you are right it does need to be elevated. Thanks for pointing this out. Also, I do like your formatting tip as well.

  2. jrv says:


    It turn out that we need to run 'elevated' and this is helpful to the format:

    (Get-WindowsOptionalFeature -Online | ? state -EQ 'disabled').'FeatureName'

    Thanks for the info on the use of this CmdLet

  3. mredwilson says:

    @JRV I added a note to the blog post stating it needs elevation. Thanks again for pointing this out.