Skip to main content

Datto RMM Agent Uninstall

Summary

This document outlines the steps to remove Datto RMM from a Mac or Windows endpoint.

Example Agent Procedure Log

TimeActionStatusUser
4:34:55 pm 1-Feb-23Datto RMM Agent UninstallSuccess THENprovaltech.com/dan.hicks
4:34:54 pm 1-Feb-23Execute Powershell Command (64-bit, Run As System)Success THENprovaltech.com/dan.hicks
4:34:54 pm 1-Feb-23Execute Powershell Command (64-bit, Run As System)-0016Powershell command complete. Results returned to global variable #global:psresult# and saved in Agent's Documents tab of server.provaltech.com/dan.hicks
4:34:54 pm 1-Feb-23Execute Powershell Command (64-bit, Run As System)-0016Informational: GetFile command overwrote the server file C:/Kaseya/UserProfiles/229175768944442/GetFiles/../docs/psoutput.txt with the new contents from c:/provaltech/psoutput.txt in THEN step 3.provaltech.com/dan.hicks
4:34:36 pm 1-Feb-23Execute Powershell Command (64-bit, Run As System)-0011Executing 64-bit Powershell command as System: "" -command "%ProgramData%/_automation/AgentProcedure/DattoRmmAgentUninstall/Remove-DattoRmmAgent.ps1" >"c:/provaltech/psoutputtmp.txt"provaltech.com/dan.hicks
4:34:36 pm 1-Feb-23Execute Powershell Command (64-bit, Run As System)-0013Sending output to global variable.provaltech.com/dan.hicks
4:34:36 pm 1-Feb-23Execute Powershell Command (64-bit, Run As System)-0008Custom commands detected as %ProgramData%/_automation/AgentProcedure/DattoRmmAgentUninstall/Remove-DattoRmmAgent.ps1provaltech.com/dan.hicks
4:34:36 pm 1-Feb-23Execute Powershell Command (64-bit, Run As System)-0003No powershell file variable detected.provaltech.com/dan.hicks
4:34:25 pm 1-Feb-23Execute Powershell Command (64-bit, Run As System)-0002Powershell is present.provaltech.com/dan.hicks
4:34:03 pm 1-Feb-23Execute Powershell CommandSuccess THENprovaltech.com/dan.hicks
4:34:03 pm 1-Feb-23Execute Powershell Command-0011Powershell command completed!provaltech.com/dan.hicks
4:33:56 pm 1-Feb-23Execute Powershell Command-0011Executing powershell "" -Command "New-Item -Type Directory -Path $env:ProgramData/_automation/AgentProcedure -name DattoRmmAgentUninstall" ""provaltech.com/dan.hicks
4:33:56 pm 1-Feb-23Execute Powershell Command-0010Not sending output to variable.provaltech.com/dan.hicks
4:33:56 pm 1-Feb-23Execute Powershell Command-0008New command variable is: -Command "New-Item -Type Directory -Path $env:ProgramData/_automation/AgentProcedure -name DattoRmmAgentUninstall"provaltech.com/dan.hicks
4:33:56 pm 1-Feb-23Execute Powershell Command-0008Custom commands detected as New-Item -Type Directory -Path $env:ProgramData/_automation/AgentProcedure -name DattoRmmAgentUninstallprovaltech.com/dan.hicks
4:33:41 pm 1-Feb-23Execute Powershell Command-0002Powershell is present.provaltech.com/dan.hicks
4:33:38 pm 1-Feb-23Datto RMM Agent UninstallWindows Detected. Performing Windows removal.provaltech.com/dan.hicks
4:33:14 pm 1-Feb-23Run Now - Datto RMM Agent UninstallAdmin provaltech.com/dan.hicks scheduled procedure Run Now - Datto RMM Agent Uninstall to run at Feb 1 2023 4:33 PM

Dependencies

SWM - Software Uninstall - Agnostic - Remove-DattoRmmAgent

Process

Utilizes the agnostic content to uninstall Datto from a Windows endpoint,
OR
Runs sudo bash /Applications/AEM/Agent.app/Contents/Resources/uninstall.sh on a Mac.

Output

Agent procedure log.