0% found this document useful (0 votes)
379 views1 page

DC Agent Cleanup

This document contains a script to clean up and uninstall the ManageEngine Desktop Central Agent from a system. The script deletes registry keys related to the agent and stops and deletes the agent and remote control Windows services.

Uploaded by

Hani M. Nasef
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
379 views1 page

DC Agent Cleanup

This document contains a script to clean up and uninstall the ManageEngine Desktop Central Agent from a system. The script deletes registry keys related to the agent and stops and deletes the agent and remote control Windows services.

Uploaded by

Hani M. Nasef
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

'Manage Engine Desktopcentral Agent .

'Script to Clean up ManageEngine Desktop Central Agent from Add remove programs .
'================================================================================

On Error Resume Next

Set WshShell = WScript.CreateObject("WScript.Shell")


WshShell.RegRead("HKEY_CLASSES_ROOT\Installer\Products\
F1322DA684FF95D4CA6204A5AF2ED37B\SourceList\Net\")
WshShell.RegDelete "HKEY_CLASSES_ROOT\Installer\Products\
F1322DA684FF95D4CA6204A5AF2ED37B\SourceList\Net\"
WshShell.RegDelete "HKEY_CLASSES_ROOT\Installer\Products\
F1322DA684FF95D4CA6204A5AF2ED37B\SourceList\Media\"
WshShell.RegDelete "HKEY_CLASSES_ROOT\Installer\Products\
F1322DA684FF95D4CA6204A5AF2ED37B\SourceList\"
WshShell.RegDelete "HKEY_CLASSES_ROOT\Installer\Products\
F1322DA684FF95D4CA6204A5AF2ED37B\"

'Uninstall Agent and Remote Control Service


'==========================================
WshShell.Run "%windir%\system32\sc stop " &Chr(34)& "ManageEngine Desktop Central
- Agent" &Chr(34),1,True
WshShell.Run "%windir%\system32\sc delete " &Chr(34)& "ManageEngine Desktop Central
- Agent" & Chr(34),1,True
WshShell.Run "%windir%\system32\sc stop " &Chr(34)& "ManageEngine Desktop Central
- Remote Control" &Chr(34),1,True
WshShell.Run "%windir%\system32\sc delete " &Chr(34)& "ManageEngine Desktop Central
- Remote Control" & Chr(34),1,True

'**********************************************************************************
************************************

You might also like