Forum Discussion
ammarjaved
Apr 01, 2022Iron Contributor
How to Install or Uninstall RSAT in Windows 11
Remote Server Administration Tools (RSAT) is an essential tool for Windows administrators. This tool is designed to help administrators manage and maintain the servers from a remote locati...
_jorel
Dec 30, 2022Brass Contributor
I am including both steps here.
Run PowerShell as admin, then:
# Get RSAT items that are not currently installed:
$install = Get-WindowsCapability -Online |
Where-Object {$_.Name -like "RSAT*" -AND $_.State -eq "NotPresent"}
# Install the RSAT items that meet the filter:
foreach ($item in $install) {
try {
Add-WindowsCapability -Online -Name $item.name
}
catch [System.Exception] {
Write-Warning -Message $_.Exception.Message
}
}
RichGodson
Jan 05, 2023Copper Contributor
Thanks for posting this.
Just moved to Win11 on my work laptop and was finding it a real pita to get the AD Users and Computers tool installed which I occasionally need to quickly & easily check AD objects.
Like many others, I found the Apps>Optional Features method suggested on most sites just doesn't show anything when you search for "rsat" but this powershell method works nicely.
For the benefit of anyone (like me) who just wants to install a specific tool from the RSAT - e.g. DSA.msc - the $_.Name attribute is different to $_.DisplayName shown in ammarjaved's example: Get-WindowsCapability -Name RSAT* -Online | Select-Object -Property DisplayName, State
To see the $_.Name attribute needed when calling the Add-WindowsCapability cmdlet, just use:
Get-WindowsCapability -Name RSAT* -Online | Select-Object -Property Name, State
Just moved to Win11 on my work laptop and was finding it a real pita to get the AD Users and Computers tool installed which I occasionally need to quickly & easily check AD objects.
Like many others, I found the Apps>Optional Features method suggested on most sites just doesn't show anything when you search for "rsat" but this powershell method works nicely.
For the benefit of anyone (like me) who just wants to install a specific tool from the RSAT - e.g. DSA.msc - the $_.Name attribute is different to $_.DisplayName shown in ammarjaved's example: Get-WindowsCapability -Name RSAT* -Online | Select-Object -Property DisplayName, State
To see the $_.Name attribute needed when calling the Add-WindowsCapability cmdlet, just use:
Get-WindowsCapability -Name RSAT* -Online | Select-Object -Property Name, State
- _jorelJan 05, 2023Brass ContributorYou're welcome. I was in a similar situation as you, upgrading to Windows 11 22H2 from 21H2 and forgot that I would lose all of these features in the upgrade. I had to dig through all of my PowerShell scripts to find the one I use for this. I stripped out a bunch of extra stuff to make it a bit simpler, though it does take a long time to install all of the features.