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:

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:

 

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

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:

That’s all there is to it.

Leave a Reply

Your email address will not be published. Required fields are marked *

*