After removing the Symantec Management Agent (SMA or Altiris Agent), you try to reinstall the agent and it fails.
The Agent Installation log (under C:\ProgramData\Symantec\Symantec Agent\Logs\InstallLogs) shows the following errors:
This is what the last agent installation log recorded:
2023-11-27 13:10:52 P:20472 T:14380 INFO InstallPrecheck: ==========================2023-11-27 13:10:52 P:20472 T:14380 INFO InstallPrecheck: AeXInstallPreCheck started2023-11-27 13:10:52 P:20472 T:14380 INFO InstallPrecheck: Symbolic link between 64 and 32 bit registry views either created or not required.2023-11-27 13:10:52 P:20472 T:14380 INFO InstallPrecheck: Current dir: C:\Users\<username>\AppData\Local\Temp\AeX_{E8F4757C-1D78-49F9-A511-E0FD4873C79B}_4076.tmp2023-11-27 13:10:52 P:20472 T:14380 INFO InstallPrecheck: Required: Windows XP SP3 (x86), Windows XP SP2 (x64), Windows Server 2003 SP2 or above.Detected: Windows 11 Pro x64 (Version 10.0.22621)
2023-11-27 13:10:52 P:20472 T:14380 INFO InstallPrecheck: AeXInstallPreCheck Finished2023-11-27 13:10:52 P:20472 T:14380 INFO InstallPrecheck: ===========================2023-11-27 13:10:52 P:20472 T:14380 INFO InstallPrecheck: Passing control to AeXNSAgent2023-11-27 13:10:52 P:20472 T:14380 INFO InstallPrecheck: Command line: AeXNSAgentInst.exe /install2023-11-27 13:10:52 P:5020 T:4664 INFO CallInterceptor: Failed to allocate storage, error: This security ID may not be assigned as the owner of this object (0x0000051B)2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: =========================================2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: Core Agent Installation started2023-11-27 13:10:52 P:5020 T:4664 INFO CoreUtil: Symbolic link between 64 and 32 bit registry views either created or not required.2023-11-27 13:10:52 P:5020 T:4664 INFO CoreUtil: Agent installation directory in registry not found, the agent may not be installed2023-11-27 13:10:52 P:5020 T:4664 INFO CoreUtil: Checking minimum requirements2023-11-27 13:10:52 P:5020 T:4664 INFO CoreUtil: Required: Windows XP SP3 (x86), Windows XP SP2 (x64), Windows Server 2003 SP2 or above.Detected: Windows 11 Pro x64 (Version 10.0.22621)
2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: + Running action: StopLegacyProcesses2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: StopProcess action started for process: aexagentuihost.exe2023-11-27 13:10:52 P:5020 T:4664 INFO AeXUtility: StopProcess('aexagentuihost.exe'): Process is not running2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: StopProcess action succeeded2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: StopProcess action started for process: aexswdusruiwin.exe2023-11-27 13:10:52 P:5020 T:4664 INFO AeXUtility: StopProcess('aexswdusruiwin.exe'): Process is not running2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: StopProcess action succeeded2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: StopProcess action started for process: aexagentlogon.exe2023-11-27 13:10:52 P:5020 T:4664 INFO AeXUtility: StopProcess('aexagentlogon.exe'): Process is not running2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: StopProcess action succeeded2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: StopProcess action started for process: aexagentdesktop.exe2023-11-27 13:10:52 P:5020 T:4664 INFO AeXUtility: StopProcess('aexagentdesktop.exe'): Process is not running2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: StopProcess action succeeded2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: StopProcess action started for process: aexagentactivate.exe2023-11-27 13:10:52 P:5020 T:4664 INFO AeXUtility: StopProcess('aexagentactivate.exe'): Process is not running2023-11-27 13:10:52 P:5020 T:4664 INFO Installer: StopProcess action succeeded2023-11-27 13:10:52 P:5020 T:4664 *ERRR AeXUtility: StopService('aexnsclient'): Failed to open service, error 0x00000005 (Access is denied)2023-11-27 13:10:52 P:5020 T:4664 *ERRR Installer: StopService action failed with reason: Access is denied (0x00000005) for service: aexnsclient2023-11-27 13:10:58 P:5020 T:4664 *ERRR CoreUtil: Install failed. Error message: Failed to run action: StopLegacyProcesses2023-11-27 13:10:58 P:5020 T:4664 INFO Installer: Core Agent Installation Ended2023-11-27 13:10:58 P:5020 T:4664 INFO Installer: =======================================2023-11-27 13:10:58 P:4076 T:18364 INFO Installer: Setup application '"C:\Users\<username>\AppData\Local\Temp\AeX_{E8F4757C-1D78-49F9-A511-E0FD4873C79B}_4076.tmp\AeXInstallPrecheck.exe" ' finished, exit code: The operation completed successfully (0x00000000)
ITMS 8.x
The Symantec Management Agent service was not removed properly during the uninstall process.
The error is generated when the installation process checks if it is currently installed the Symantec Management Agent service. Since it is not able to stop it or get a response from its current status, it fails.
Try the following: