R
robwm1
Guest
Hi,
I am writing a PowerShell script that can install or remove RSAT. I am not having problems installing RSAT with PowerShell but I do get an error when trying to remove RSAT. I have tried using Remove-WindowsCapability in a few different ways but it always fails. The most common error is:
Remove-WindowsCapability : Permanent package cannot be uninstalled.
Here are some command lines I have tried:
Get-WindowsCapability -Name RSAT* -Online | Remove-WindowsCapability -Online
Remove-WindowsCapability -Name RSAT* - Online
Remove-WindowsCapability -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0 -Online
These all seem to be presenting the error shown above. How do you remove RSAT using PowerShell? These aren't permanent packages so you should be able to remove them.
Thank you!
Rob
More...
I am writing a PowerShell script that can install or remove RSAT. I am not having problems installing RSAT with PowerShell but I do get an error when trying to remove RSAT. I have tried using Remove-WindowsCapability in a few different ways but it always fails. The most common error is:
Remove-WindowsCapability : Permanent package cannot be uninstalled.
Here are some command lines I have tried:
Get-WindowsCapability -Name RSAT* -Online | Remove-WindowsCapability -Online
Remove-WindowsCapability -Name RSAT* - Online
Remove-WindowsCapability -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0 -Online
These all seem to be presenting the error shown above. How do you remove RSAT using PowerShell? These aren't permanent packages so you should be able to remove them.
Thank you!
Rob
More...