Hi,

We previously had the Altiris Agent installed on all of our machines for deployment purposes. Now that we've switched over to KACE (for approximately a year now) we still have plenty of machines out there with the Altiris agent still running on them. My question is, is anyone currently using a script they can share with me to remove the agent completely from their Windows machines? Up until this point we've been manually removing it as we come across it (not so easy because it leaves a lot of stuff behind), usually by stopping all three Altiris services, then running the following batch file:

"C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /UninstallAgents
"C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /ResetGuid
"C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /Clean

Then removing the program from Add/Remove programs. Very long winded.

Thanks for your help.

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

1

Dont have a script, but could make a recommendation.

KACE:
Make a group that is based on having the "AeXAgentUtil.exe" or some other means that you can use to target the Altiris Agents. In SCCM i would use the add/remove programs, so if it found the Altiris Agent then it would be in the collection, this would be a dyncamic collection.

Script:
Batch it up, would be the easiest/fastest way.
Actions: script what actions you need to do.

For the services see the below to stop them.
http://technet.microsoft.com/en-us/library/cc736564(v=ws.10).aspx

The run your bits
"C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /UninstallAgents
"C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /ResetGuid
"C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /Clean

Then uninstall the agent. You will need to look in registry to find the uninstall string.
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
Once you have that, add it to the batch.

You need to run the batch with the admin/system context so it has rights.

Thats it, good luck!

Answered 05/03/2013 by: rileyz
Red Belt

Please log in to comment
1

According to this blog post you can run a command line to uninstall the agent: http://www.symantec.com/connect/blogs/uninstalling-altiris-agents

Based on that I woud make a smart label that finds computers with the Altiris Agent installed (it shows up in the software inventory, so you don't even need a custom inventory rule) and then have a script that runs the commands to remove it. I would probably use an online shell script for this. 

Answered 05/03/2013 by: chucksteel
Red Belt

Please log in to comment
1

We used to have the altiris agent installed on our systems before kace. Here's the batch file that I ran as a kace script to remove the agent:

 

"C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /UninstallAgents
"C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /ResetGuid
"C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /Clean
RD "C:\Program Files\Altiris\Altiris Agent" /s /q
sc delete AltirisACSvc

Answered 05/03/2013 by: ms01ak
Tenth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share