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
}
}
aswan1380
Jul 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 } }