Deploy RSAT (Remote Server Administration Tools) for Windows 10 v20H2 using ConfigMgr and PowerShell

Introduction

This is becoming quite the tradition, and based on the count of views of my previous posts, a popular one indeed. ūüôā

I’m a man of traditions, so I’m sticking true to that, and therefore updated my PowerShell script which will enable you to install RSAT for Windows 10 v20H2 automatically and unattended.

The script received some minor changes, and is now also capable of temporarily disabling WSUS, and re-enabling it again post installation.

Over the years and since I created the first script, I have received a lot of comments saying, that if a device is configured to use WSUS, installation of Features on Demand may fail if certain configuration is not in place. So this is another attempt to have the most success with the use of my script.

PowerShell

The script requires administrative rights as well as access to the Internet (RSAT is installed through Microsoft Update).

The script is build around Get-WindowsCapability, Add-WindowsCapability and Remove-WindowsCapability.

The script comes with 5 options:

  • -All (-All¬†is installing ALL the features within the¬†RSAT¬†bundle)
  • -Basic (-Basic¬†is only installing AD DS, DHCP, DNS, Group Policy Management and Server Manager)
  • -ServerManager (-ServerManager¬†is only installing the Server Manager)
  • -Uninstall (-Uninstall¬†removes all RSAT features again)
  • -DisableWSUS ( -DisableWSUS¬†will disable and re-enable WSUS in the process of installing RSAT)

Below an example of running the script manually with the -Basic and -DisableWSUS parameters on Windows 10 v20H2:

Configuration Manager

I’m putting the Powershell script to use with an application in ConfigMgr. While this is pretty standard ConfigMgr, I have included a few snippets of the application below.

The installation program:

powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File .\Install-RSATv1809v1903v1909v2004v20H2.ps1 -Basic

The uninstall program:

powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File .\Install-RSATv1809v1903v1909v2004v20H2.ps1 -Uninstall

The repair program:

powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File .\Install-RSATv1809v1903v1909v2004v20H2.ps1 -Basic

Download

The script is now located on my GitHub page: https://github.com/imabdk/Powershell/blob/master/Install-RSATv1809v1903v1909v2004v20H2.ps1

ENJOY ūüôā

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.