DBA Hub

📋Steps in this guide1/3

Adding/Removing Windows Features using PowerShell

This article describes how to list, add and remove Windows features using PowerShell.

oracle miscconfigurationintermediate
by OracleDba
12 views
1

List Windows Features

List the features and their install status using the following command.

Code/Command (click line numbers to comment):

1
2
3
4
5
# All features.
get-windowsfeature

# All features containing the word "net"
get-windowsfeature *net*
2

Add Windows Features

To add a Windows feature use the following.

Code/Command (click line numbers to comment):

1
2
3
4
5
# Pre-2012
add-windowsfeature as-net-framework

# 2012 Onward
install-windowsfeature as-net-framework
3

Remove Windows Features

To remove a Windows feature use the following. For more information see: - Get-WindowsFeature - Add-WindowsFeature (Pre-2012) - Remove-WindowsFeature (Pre-2012) - Install-WindowsFeature (2012 Onward) - Uninstall-WindowsFeature (2012 Onward) Hope this helps. Regards Tim...

Code/Command (click line numbers to comment):

1
2
3
4
5
# Pre-2012
remove-windowsfeature as-net-framework -Restart

# 2012 Onward
uninstall-windowsfeature as-net-framework -Restart

Comments (0)

Please to add comments

No comments yet. Be the first to comment!