How to Install RSAT in Windows 11 Using PowerShell?

In this tutorial, I will explain how to install Remote Server Administration Tools (RSAT) in Windows 11 using PowerShell. RSAT is essential for IT administrators who need to manage Windows Server roles and features from a remote computer. This tutorial will walk you through the process of efficiently setting up RSAT on your Windows 11 machine.

Note: You should have administrative privileges on the Windows 11 machine.

Install RSAT Using PowerShell in Windows

Now, let me show you step by step how to install RSAT in Windows 11 using PowerShell.

Step 1: Open PowerShell with Administrative Privileges

First, you need to open PowerShell with administrative privileges. Here’s how:

  1. Click on the Start menu.
  2. Type PowerShell in the search bar.
  3. Right-click on Windows PowerShell and select Run as administrator.

Step 2: Check Available RSAT Features

To see a list of available RSAT features, use the following PowerShell command:

Get-WindowsCapability -Name RSAT* -Online

This command will list all RSAT components that can be installed. You will see output similar to this:

Name                                               : Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0
State                                              : NotPresent
...

You can see the exact output in the screenshot below:

Install RSAT in Windows 11 Using PowerShell

Check out Restart a Windows Service Using PowerShell

Step 3: Install Specific RSAT Components

You can install specific RSAT components based on your needs. For example, to install the Active Directory Domain Services and Lightweight Directory Tools, use the command:

Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0

Step 4: Verify Installation

After installation, verify that the RSAT component is installed by running the Get-WindowsCapability command again:

Get-WindowsCapability -Name RSAT* -Online | Where-Object State -eq 'Installed'

You should see the installed components listed with the state Installed.

Read Get Windows Update History Using PowerShell

Common Issues and Troubleshooting

Now, let me show you some troubleshooting steps and common issues you might face while installing RSAT in Windows 11.

Issue 1: RSAT Component Not Found

Sometimes, you might encounter an issue where the RSAT component is not found. This can happen if the Windows update catalog is not up-to-date. To resolve this, ensure your Windows 11 machine is fully updated:

  1. Open Settings.
  2. Go to Windows Update.
  3. Click on Check for updates.

Issue 2: Installation Fails

If the installation fails, try running PowerShell as an administrator again and ensure all pending Windows updates are installed. Additionally, you can use the following command to reset the Windows Update components:

Reset-WindowsUpdate.ps1

This script resets the Windows Update components and might resolve the issue.

Check out Install Git on Windows Using PowerShell

Automate RSAT Installation with a Script

Automating the RSAT installation process can save significant time for IT administrators managing multiple machines. Here’s a sample PowerShell script to install multiple RSAT components:

$RSATTools = @(
    "Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0",
    "Rsat.Dns.Tools~~~~0.0.1.0",
    "Rsat.FileServices.Tools~~~~0.0.1.0"
)

foreach ($tool in $RSATTools) {
    Add-WindowsCapability -Online -Name $tool
}

# Verify installation
Get-WindowsCapability -Name RSAT* -Online | Where-Object State -eq 'Installed'

Conclusion

I explained how to install RSAT on Windows 11 using PowerShell in this tutorial. Do let me know in the comment below if you face any issues.

You may also like:

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

FREE Download an eBook that contains 100 PowerShell cmdlets with complete script and examples.