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...
romariormr
Dec 12, 2022Copper Contributor
_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
}
}
- e313905Sep 06, 2024Copper ContributorA great help. Thank you for providing your input.
- eabearceApr 12, 2024Copper ContributorThank you, this Powershell option worked better than other methods!
- oguggMar 14, 2024Copper Contributor
The admin powershell script from jorel is very good.
I was using only this line to install fast :
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability –Online
But now I will use your script.
Thanks!
- fanjoy5566Dec 06, 2023Copper ContributorI ran PowerShell as Admin and they are staged. What is the next step?
DisplayName State
----------- -----
RSAT: Active Directory Domain Services and Lightweight Directory Services Tools Staged
RSAT: PowerShell module for Azure Stack HCI Staged
RSAT: BitLocker Drive Encryption Administration Utilities Staged
RSAT: Active Directory Certificate Services Tools Staged
RSAT: DHCP Server Tools Staged
RSAT: DNS Server Tools Staged
RSAT: Failover Clustering Tools Staged
RSAT: File Services Tools Staged
RSAT: Group Policy Management Tools Staged
RSAT: IP Address Management (IPAM) Client Staged
RSAT: Data Center Bridging LLDP Tools Staged
RSAT: Network Controller Management Tools Staged
RSAT: Network Load Balancing Tools Staged
RSAT: Remote Access Management Tools Staged
RSAT: Remote Desktop Services Tools Staged
RSAT: Server Manager Staged
RSAT: Storage Migration Service Management Tools Staged
RSAT: Storage Replica Module for Windows PowerShell Staged
RSAT: System Insights Module for Windows PowerShell Staged
RSAT: Volume Activation Tools Staged
RSAT: Windows Server Update Services Tools Staged - aswan1380Jul 15, 2023Copper Contributor
how can i uninstall RSAT? using powershell, thank you.._jorel
- _jorelJul 16, 2023Brass Contributor
aswan1380, this can be done similar to the method used to install the RSAT tools.
Again, open PowerShell as admin, then run the following code, which will remove all RSAT tools that are currently installed.
# Get RSAT items that are currently installed: $remove = Get-WindowsCapability -Online | Where-Object {$_.Name -like "RSAT*" -AND $_.State -eq "Installed"} # Remove the RSAT items that meet the filter: foreach ($item in $remove) { try { Remove-WindowsCapability -Online -Name $item.Name } catch [System.Exception] { Write-Warning -Message $_.Exception.Message } }
- RichGodsonJan 05, 2023Copper ContributorThanks 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- _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.