PowerTip: Use PowerShell to Find Disabled Features in Windows 8

PowerTip: Use PowerShell to Find Disabled Features in Windows 8

Rate This
  • Comments 3

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'

 

Leave a Comment
  • Please add 2 and 1 and type the answer here:
  • Post
  • @Ed

    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

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

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

Page 1 of 1 (3 items)