PowerShell Add-WindowsFeature

PowerShell Add-WindowsFeature

 

I always try to remember PowerShell the command for installing Roles and Features in Windows 2008 R2 Server, but I always easily forgot. 

What I always know is the Import-Module ServerManager.

If you want to do installing features using PowerShell for fastest installation, use Get-WindowsFeature. It will help you to use the short name.

For example:

1. I Open PowerShell and typing Import-Module ServerManager

2. Then, type Get-WindowsFeature and the result looks like below:
     

3. The [X] on the left hand side, means that the service is already installed in your system.

4. To install some of the features, let'say "XPS Viewer", you need to use Add-WindowsFeature followed with the Name. 

           For Example, type Add-WindowsFeature -XPS-Viewer

            

5. After hitting the command above, the result will be shown whether the features successfully installed or not.
The status looks like below

                  
                   
That's all from my sharing.
Leave a Comment
  • Please add 2 and 2 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Richard Mueller edited Revision 8. Comment: Modify formatting so text is not hidden

  • Richard Mueller edited Revision 7. Comment: Removed (en-US) from title, added tags

  • Craig Lussier edited Revision 5. Comment: added en-US to tags and title

  • Craig Lussier edited Revision 4. Comment: edited for grammar

Page 1 of 1 (4 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Richard Mueller edited Revision 8. Comment: Modify formatting so text is not hidden

  • Richard Mueller edited Revision 7. Comment: Removed (en-US) from title, added tags

  • Craig Lussier edited Revision 5. Comment: added en-US to tags and title

  • Craig Lussier edited Revision 4. Comment: edited for grammar

Page 1 of 1 (4 items)