How can I uninstall altiris agent on workstation?
Submitted by Sam_H on 2 July, 2008 - 11:16.
The agent is not on Add and Remove programms, so how can I uninstall agent on client machine? Do you have any idea? Help please.
Thanks
A Community for Symantec Customers and End Users Collaborate, learn, and share ideas about Altiris' |
SEARCH Advanced |
Application PackagingAsset & CMDBDell | AltirisDeployment & MigrationEndpoint VirtualizationGhost Solution SuiteHelpdesk SolutionHP | AltirisIntel | AltirisSecurity & ComplianceWorkflow SolutionActive forum topicsUpcoming eventsRSS :: General |
|
NavigationRelated ReadingRecent comments
Top Contributors: 1 weekTop Contributors
Who's onlineThere is currently 1 user online.
Online users |
RE:How can I uninstall altiris agent on workstation?
Under NS:
1) Goto Configuration Tab.
2) Expand Altiris Agent.
3) Expand Altiris Agent Uninstall
4) Enable the Altiris Agent Uninstall and select which collection you want to apply it to.
5) If necessary, create a new collection and add to it the PCs that you wish to uninstall the Agent from.
Batch File to clean it up
Here is what I use. It is quick and simple and will clean the GUID from it also in case you want to reinstall the agent.
overkill
Simply running the third command of "C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /Clean
is suficient as it unregisters all agents and removed them. As a little post uninstall I also make it a habit to manually delete the system from the DB as well as remove the Altiris Agent, carbon copy, and express folders. If you are also removing aclient, or do not have in installed on the system, you can simply remove the Altiris folder from under Program Files once the uninstall process is completed.
How to uninstall altiris agent on local client machine?
Thanks mabdelnabi for your guide, but I do not have those machine in Altiris Deployment list, they do not show up in the deployment list. That's why I want uninstall agent locally and try to install from Consle to see if show up in the list.
Clean
I've recently used the last part of your script, the /clean, but always seemed to be left with the application metering agent.
Thanks for the other bits I'll give the whole script a try thanks
C
I've seen the same thing
I've seen the same thing every now and then when needing to scrub some old machines.
One (tedious) way to do it is to look at all of your agent uninstall jobs and combine all of those command lines into a single batch file with the above mentioned lines running afterwards.
i.e. make the first line of the batch file uninstall the app metering agent.
altiris scrub
I was having issues with garbage being left in the file system and registry with the official uninstall methods so I use the following to scrub a workstation of altiris stuff. Just remember to set your variables at the top for your env
line 3 was used to make the script portable from my DEV to PROD NS/DS, you can comment it out. Use psexec to run remotely
rem @echo off SET DS= IF NOT %USERDOMAIN%== SET DS= \\%DS%\express\tools\sysinternals\pskill.exe -accepteula -t aclient \\%DS%\express\tools\sysinternals\pskill.exe -accepteula -t aclntusr \\%DS%\express\tools\sysinternals\pskill.exe -accepteula -t aexnsagent :aclientdetection \\%DS%\express\tools\sysinternals\psservice.exe -accepteula query aclient IF NOT %errorlevel% == 0 goto aagentdetection IF EXIST "%SYSTEMDRIVE%\Altiris\Aclient\aclient.exe" goto aclientremovalA IF EXIST "%PROGRAMFILES%\Altiris\Aclient\aclient.exe" goto aclientremovalB :aclientremovalA start /wait cmd /c "%SYSTEMDRIVE%\Altiris\Aclient\aclient.exe /remove /silent" %errorlevel% goto aagentdetection :aclientremovalB start /wait cmd /c "%PROGRAMFILES%\Altiris\Aclient\aclient.exe /remove /silent" %errorlevel% goto aagentdetection :aagentdetection IF NOT EXIST "%PROGRAMFILES%\Altiris\Altiris Agent\AeXAgentUtil.exe" goto :finalcleanup :aagentremoval start /wait cmd /c "%programfiles%\altiris agent\AeXAgentUtil.exe /uninstallagents /clean" %errorlevel% :Finalcleanup IF EXIST "%SYSTEMDRIVE%\Altiris\" rd /s /q "%SYSTEMDRIVE%\Altiris\" IF EXIST "%PROGRAMFILES%\Altiris\" rd /s /q "%PROGRAMFILES%\Altiris\" IF EXIST "%WINDIR%\TEMP\alsmb.exe" DEL /s /q "%windir%Temp\alsmb.exe" IF EXIST %systemdrive%\ACLIENT.CFG DEL /s /q "%systemdrive%\AClient.cfg" rem unregister components IF EXIST C:\WINDOWS\system32\AeXMenuCtrlLib.dll regsvr32 /u /s C:\WINDOWS\system32\AeXMenuCtrlLib.dll IF EXIST C:\WINDOWS\system32\AeXNSConsoleUtilities.dll regsvr32 /u /s C:\WINDOWS\system32\AeXNSConsoleUtilities.dll IF EXIST C:\WINDOWS\system32\AeXTreeCtrlLib.dll regsvr32 /u /s C:\WINDOWS\system32\AeXTreeCtrlLib.dll %errorlevel% rem clean registry reg query HKLM\Software\Altiris if %errorlevel% == 0 reg delete HKLM\Software\Altiris /f /va reg query HKLM\SOFTWARE\classes\Appid\{5E038245-CF81-44BE-8018-9A2981B9DC9B} if %errorlevel% == 0 reg delete HKLM\SOFTWARE\classes\Appid\{5E038245-CF81-44BE-8018-9A2981B9DC9B} /f REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\AClient /f REG DELETE HKLM\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_ACLIENT /f REG DELETE HKLM\SYSTEM\ControlSet001\Enum\Root\LEGACY_ACLIENT /f REG DELETE HKLM\SYSTEM\ControlSet001\Services\AClient /f REG DELETE HKLM\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List /f /v "C:\Program Files\Altiris\AClient\AClntUsr.EXE" REG DELETE HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List /f /v "C:\Program Files\Altiris\AClient\AClntUsr.EXE" reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Altiris.*" /f echo looking for misc alt files del /q %windir%\AeX* del /q %windir%\system32\AeX* exit exit