Script to uninstall RMM Hi Rolan,
To keep things simple, you can execute the following command to silently uninstall the RMM Agent (if it was installed to the default path):
C:\Program Files\RMM Agent\uninst.exe /S
But the best way to uninstall the RMM Agent will be using our MSP360 PowerShell module. This is a code example to use in a script file:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA')+'Install-MSP360Module')
Remove-RMMAgent -Force
And this is a one-line command:
powershell -ExecutionPolicy Bypass -command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex (New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA'); Install-MSP360Module; Remove-RMMAgent -Force}"
Hope this helps.