When we use/execute the AexAgentUtil.exe with '/clean' or '/uninstallagents'. Where does it pull the information (registry, database, etc) about installed agents in order to run the uninstaller for them?
The Altiris Agent, in this case the AexAgentUtil.exe, calls an uninstall string from the regkey.
Those keys, which in this case it is called "UninstallString", can be found under the registry key: "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Plugin Objects\Agents\"
For example, if the Altiris Agent needs to uninstall the Client Task Server Agent, it will look for the following regkey: