Sometimes there's a need to fully reinstall Quest ODMAD dirsync agent. How to do that safely?
There are several things that should be taken into an account when dealing with ODMAD dirsync agents:

If agent was uninstalled with the registry wipe, please go to the ODMAD menu, Environments, select the affected environment, Agents and delete/archive the agent. Then generate a new agentID (registration key) there.
Reinstallation with the new registration key, registry wiping, and deletion/archival of the agent in the ODMAD console is considered a "full reinstall".
=== DISCLAIMER ===
Support does not provide support for problems that arise from improper modification of the registry. The Windows registry contains information critical to your computer and applications. Make sure you back up the registry before modifying it. For more information on the Windows Registry Editor and how to back up and restore it, refer to Microsoft Article ID 256986 “Description of the Microsoft Windows registry” at Microsoft Support.