:Graceful Uninstall
"C:\Program Files\Infocyte\Agent\dattoav\Endpoint Protection SDK\endpointprotection.exe" uninstallSdk
"C:\Program Files\Infocyte\Agent\dattoav\Endpoint Protection SDK\endpointprotection.exe" uninstallSdk
"C:\Program Files (x86)\Infocyte\Agent\dattoav\Endpoint Protection SDK\endpointprotection.exe" uninstallSdk
"C:\Program Files (x86)\Infocyte\Agent\dattoav\Endpoint Protection SDK\endpointprotection.exe" uninstallSdk
"C:\ProgramData\CentraStage\AEMAgent\RMM.AdvancedThreatDetection\dattoav\Endpoint Protection SDK\endpointprotection.exe" uninstallSdk
"C:\ProgramData\CentraStage\AEMAgent\RMM.AdvancedThreatDetection\dattoav\Endpoint Protection SDK\endpointprotection.exe" uninstallSdk
waitfor uninstall /t 30
taskkill /f /IM unins000.exe
:Disable Services
sc config EndpointProtectionService start= disabled
sc config EndpointProtectionService2 start= disabled
:Stop Services
net stop EndpointProtectionService
net stop EndpointProtectionService2
:Stop Processes
taskkill /IM endpointprotection.exe /F
taskkill /IM agent.exe /F
taskkill /IM engine.exe /F
taskkill /IM engine.tmp /F
taskkill /IM RMM.AdvancedThreatDetection.exe /F
:Delete Services
sc delete EndpointProtectionService
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\EndpointProtectionService" /f
reg delete "HKLM\SYSTEM\ControlSet001\Services\EndpointProtectionService" /f
reg delete "HKLM\SYSTEM\ControlSet002\Services\EndpointProtectionService" /f
reg delete "HKLM\SYSTEM\ControlSet003\Services\EndpointProtectionService" /f
reg delete "HKLM\SYSTEM\Setup\FirstBoot\Services\EndpointProtectionService" /f
sc delete EndpointProtectionService2
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\EndpointProtectionService2" /f
reg delete "HKLM\SYSTEM\ControlSet001\Services\EndpointProtectionService2" /f
reg delete "HKLM\SYSTEM\ControlSet002\Services\EndpointProtectionService2" /f
reg delete "HKLM\SYSTEM\ControlSet003\Services\EndpointProtectionService2" /f
reg delete "HKLM\SYSTEM\Setup\FirstBoot\Services\EndpointProtectionService2" /f
:Cleanup
::AV
del /f /s /q "C:\Program Files (x86)\Infocyte\Agent\dattoav\*" >nul 2>&1
del /f /s /q "C:\Program Files\Infocyte\Agent\dattoav\*" >nul 2>&1
del /f /s /q "C:\ProgramData\CentraStage\AEMAgent\RMM.AdvancedThreatDetection\dattoav\*" >nul 2>&1
del /f /s /q "C:\ProgramData\DattoAV\"
del /f /s /q "C:\ProgramData\Endpoint Protection SDK\"
rmdir /s /q "C:\Program Files (x86)\Infocyte\Agent\dattoav"
rmdir /s /q "C:\Program Files\Infocyte\Agent\dattoav"
rmdir /s /q "C:\ProgramData\CentraStage\AEMAgent\RMM.AdvancedThreatDetection\dattoav"
rmdir /s /q "C:\ProgramData\DattoAV"
rmdir /s /q "C:\ProgramData\Endpoint Protection SDK"