Blog Post

blog.

Install Windows Features in SCCM Task Sequence

  • By Bernd Baedermann
  • 04 Feb, 2018

Install Remote Desktop Session Host Role in a Configuration Manger Task Sequence

When it comes to build the Reference (a.k.a Master, Golden or Base) – Image for your XenApp Worker, one requirement is the installation of the Remote Desktop Services – Session Host (RDS-SH). Today I will show you how I install this and other “Roles & Features” of a Windows Server 2016 in a Configuration Manager Operating System Deployment (OSD) Task Sequence.

I personally like to organize and bundle steps within a task sequence in categories like I did in the picture below as you can see.

The key to easily install Windows Server 2016 Roles & Features in a Configuration Manager Task Sequence is a step called “Run Command Line“. Add this step to your Task Sequence and in the Command line window, write the following command:

Powershell.exe Install-WindowsFeature RDS-RD-Server

As you can see in the picture below, there is no additional configuration needed to get this running.

After this step, add a “Restart Computer” step in your Task Sequence so that the Configuration Manager Client recognizes the needed reboot by the OS.

In addition to this, the Virtual Delivery Agent (VDA) for your XenApp Worker needs the Windows Server 2016 Features “Media Foundation” and “Remote Assistance”. Add these steps also as “Run Command Line” step in your Task Sequence.

To get a list of all Roles & Features use the Get-WindowsFeature Commandlet in powershell. To install any of the listed Roles & Features use the Install-WindowsFeature Commandlet followed by the name (not Display-Name) of the expected Role or Feature.

Share by: