Scroll To Top

How to install WDS with PowerShell on Server 2016?

Posted in Networking, Windows Server1 year ago • Written by Ghulam Abbas2 Comments

Last time we overviewed WDS, How it works and the most important How to install that from server manager? also, we learned What are the requirements of WDS in a server, but today in this scenario I have decided to show you How to install WDS with PowerShell also How to remove WDS in a Server. If you learned Installing WDS with PowerShell in advanced, I can guaranty you, that you can install/Uninstall any features of windows Server.

Benefits of Installing features with PowerShell or Cmdlets

1: It can save you much time.

While installing any feature with server Manager, clicking next. selecting and doing other works will take you so much time, instead if you use PowerShell Commands it will save you much time.

2: It will be easy for giving Exam.

The next thing which I recognized, in Exam text of 70-411, you may be asked for some commands, so it is better to start using PowerShell right now.

Install WDS with PowerShell

Step #1. Run Powershell as Administrator Privileges. If you have run that with no administrator, then type down this command.

Start-Process PowerShell.exe -Verb RunAs

Step #2. Now you have to find out the features name in order to install. In order to find out the feature or role name type down this command and press Enter.

Install Features with Cmdlets

Get windows Feature

after pressing enter it will bring the whole role and features which are available on the server, also it will show you which role or feature is installed on the server. Since We are trying to install WDS, find out WDS .

Install Features with Cmdlets

Get Windows Feature

Step #3. When you find out the feature name, copy it or take it in mind. For installing the feature type down this command and press enter.

Install-WindowsFeature -Name <“Feature Name”> -ComputerName <“DC”> -IncludeManagementTools -restart

Instead of <“Feature Name”> insert the Feature which you want to install. Instead of <“DC”> insert your computer’name, and if it has sub features type down the -IncludeManagementTools, and if needs to restart the PC type down -Restart and Press.

Install-WindowsFeature -Name WDS -ComputerName DC -IncludeManagementTools -restart

When it installed on the server, Powershell will tell you these things:

Success Restart Needed Exit Code Feature Result
True No Success Windows Deployment Services
Install Features with Cmdlets

Result of installing WDS

Note: If you have Problem with installing any feature with PowerShell or CmdLets, then you can ask PowerShell to help you. In order to get Help from PowerShell type down this command.

Get-Help Install-windowsFeature

When you enter that command, the Complete Help Commands of installing a feature will appear for you. It says that instead of Install-Windowsfeature you can also type Add windowsfeature. For Better understanding take a look at the Picture and the Video.

Related Post: Discovering Microsoft PowerShell Commands

Uninstall WDS with PowerShell

Now you have install WDS on the Server, but sometimes it may happen to you, that you want to remove that feature with PowerShell. You can do that with the same command, all you to do is, instead of instead put uninstall, the wrest commands are the same. Even the help commands are also the same.


It was all about, How to install WDS with PowerShell on Server 2016? I hope you have learned this article, I hope you will ask your questions, give us your suggestions, opinion about what articles we have to write. If you faced any problem tell us below by comment, Feel free to tell us. we’re waiting for your suggestion.

Watch Out the Video

TAGS: , , , ,

2 Comments so far. Feel free to join this conversation.

  1. neil January 8, 2017 at 2:02 pm - Reply

    Thanks for this.
    Not just because it showed how to install WDS but also basic powershell usage.

    • Nyaz January 9, 2017 at 7:26 pm - Reply

      Thanks, you are welcome.

Leave A Response