PowerTip: Use PowerShell to Find Disabled Features in Windows 8

PowerTip: Use PowerShell to Find Disabled Features in Windows 8

  • Comments 3
  • Likes

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'

 

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • @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.