Installing Server Features or Roles using Powershell

How to: list, install, and uninstall Windows Server Features or Roles on Server 2008R2 <

Open Powershell as an Administrator

First you need to load the Server Manager Module:

Import-Module ServerManager

Next we will get a list of what is installed and possible command options:

Get-WindowsFeature

Which will display something Similar to the Example Below:

clip_image001

Your list of possible Remove (Uninstall) and Add (install) options are listed to the right

So I want to install the “Fax Server” so I input the following:

Add-WindowsFeature fax

It will begin processing:

clip_image003

After Completion you will see the status and indicate whether a restart is needed:

clip_image004

Note: Above to install Fax Server it also installed “Print Server”

Now I will uninstall FAX:

Remove-WindowsFeature Fax

It will begin processing:

clip_image006

After Completion you will see the status and indicate whether a restart is needed:

clip_image007

Note: Above it only uninstalled the Fax Server it did not remove the “Print Server”

From my list I find the command to remove the Print Server is:

Remove-WindowsFeature Print-Server

It will begin processing:

clip_image009

After Completion you will see the status and indicate whether a restart is needed:

clip_image010

Comments

Popular posts from this blog

Office 365 Deployment Tool Office Download fails “Could not Install”

FRS to DFSR Post Cleanup “File Replication NtFrs Stopped”

Domain Migration SubinACL /Migratetodomain How To: