SEARCH

How-To Geek

Stupid Geek Tricks: Manage Windows Optional Features From PowerShell in Windows 8

Most people know that you can enable or disable the optional Windows features through the Control Panel, but today we’re going to show you how you can do the same thing through the PowerShell command line.

Manage Windows Optional Features From PowerShell

The first thing you will want to do is see what features you have enabled, to do this we will need to pass the output of the Get-WindowsOptionalFeature cmdlet down the pipeline, where it can be filtered and formatted:

Get-WindowsOptionalFeature –Online | Where-Object {$_.State –eq “Enabled”} | Format-Table

That will give you a nice tabulated view of what is enabled.

If you want to see what features are disabled you can use the following:

Get-WindowsOptionalFeature –Online | Where-Object {$_.State –eq “Disabled”} | Format-Table

If you need to disable a feature you can use the following:

Disable-WindowsOptionalFeature –FeatureName NetFx3 –Online

This assumes that the feature that you want to disable is NetFx3.

Of course, you will most likely be adding a feature which can be done like so:

Enable-WindowsOptionalFeature –FeatureName NetFx3 –Online

That’s all there is to it.

Don't show again X

Don't Upgrade to Windows 8 Until You Read This Book!

Windows 8 can be confusing, but our comprehensive guide will teach you everything the easy way.


There are over a thousand screenshots and pictures to walk you through everything there is to know about Windows 8, and it's written in the classic How-To Geek style that you know and love.


Get Your Copy Now  

Comments (3)

  1. Stephen

    I’m so ready for powershell 3.0 to be back ported to Win 7 and Server 2008 R2

  2. Antonin

    I’d love to work with that on 7 :)

  3. Zakariah

    Yeah it is stupid, but can you make more interesting articles because it’s always about Android this month.

Taylor Gibb is a Microsoft MVP and all round geek, he loves everything from Windows 8 to Windows Server 2012 and even C# and PowerShell. You can also follow him on Google+

  • Published 08/10/12

RECOMMENDED POSTS