8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | 23ai | Misc | PL/SQL | SQL | RAC | WebLogic | Linux
Adding/Removing Windows Features using PowerShell
This article describes how to list, add and remove Windows features using PowerShell. Some operations, like adding and removing features may require PowerShell to be started using "Run as Administrator".
List Windows Features
List the features and their install status using the following command.
# All features. get-windowsfeature # All features containing the word "net" get-windowsfeature *net*
Add Windows Features
To add a Windows feature use the following.
# Pre-2012 add-windowsfeature as-net-framework # 2012 Onward install-windowsfeature as-net-framework
Remove Windows Features
To remove a Windows feature use the following.
# Pre-2012 remove-windowsfeature as-net-framework -Restart # 2012 Onward uninstall-windowsfeature as-net-framework -Restart
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...