Deployment Solution

 View Only
Expand all | Collapse all

How can I uninstall altiris agent on workstation?

Migration User

Migration UserDec 01, 2009 12:33 PM

  • 1.  How can I uninstall altiris agent on workstation?

    Posted Jul 02, 2008 01:16 PM
    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


  • 2.  RE: How can I uninstall altiris agent on workstation?

    Posted Jul 02, 2008 04:28 PM
    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.


  • 3.  RE: How can I uninstall altiris agent on workstation?

    Posted Jul 02, 2008 06:24 PM
    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.
    REM Uninstall All NS Agents
    
    "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
    
    


  • 4.  RE: How can I uninstall altiris agent on workstation?

    Posted Jul 08, 2008 11:26 AM
    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.


  • 5.  RE: How can I uninstall altiris agent on workstation?

    Posted Jul 11, 2008 01:58 PM
    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.


  • 6.  RE: How can I uninstall altiris agent on workstation?

    Posted Jul 11, 2008 04:04 PM
    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


  • 7.  RE: How can I uninstall altiris agent on workstation?

    Posted Jul 11, 2008 04:40 PM
    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.


  • 8.  RE: How can I uninstall altiris agent on workstation?
    Best Answer

    Posted Jul 11, 2008 06:54 PM
    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 [no-glossary]
    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
    
    [/no-glossary]


  • 9.  RE: How can I uninstall altiris agent on workstation?

    Posted Nov 25, 2009 02:49 PM
    Hello,

    How do I exactly pass this script?
    I saved the script above as vbs, vb, js, bat, cmd or other?

    thanks,
    Dom


  • 10.  RE: How can I uninstall altiris agent on workstation?

    Posted Nov 25, 2009 03:10 PM
    BAT or CMD should work.  From what I can tell it is a standard batch script. 


  • 11.  RE: How can I uninstall altiris agent on workstation?

    Posted Nov 25, 2009 05:40 PM
    Excellent thanks

    When I run it on the local machine it works when I run it from System Center Configuration Manager it errors out
    ============================================================================
    Severity Type Site code Date / Time System Component Message ID Description
    Error Milestone DTS 11/25/2009 2:35:15 PM OPPMCCS6084TST Software Distribution 10006 The program for advertisement "DTS2007A" failed ("DTS00048" - "Test Deletion Altiris"). A failure exit code of 255 was returned.  User context: NT AUTHORITY\SYSTEM    Possible cause: Systems Management Server (SMS) determines status for each program it executes. If SMS cannot find or correlate any installation status Management Information Format (MIF) files for the program, it uses the program's exit code to determine status. An exit code of 255 is considered a failure.  Solution: For more information on the exit code, refer to the documentation for the program you are distributing.

    any idea? which command fails?
    I am trying to log some steps now...

    Thanks,
    Dom


  • 12.  RE: How can I uninstall altiris agent on workstation?

    Posted Nov 30, 2009 08:14 AM
    Do you have the sysinternal files?  The script appears to call pskill which is not native to the OS.


  • 13.  RE: How can I uninstall altiris agent on workstation?

    Posted Nov 30, 2009 02:20 PM
    Dom,
    Clearly, the issue is that you're using SMS! :-)

    What happened?  SMS/SCCM?  What's the world coming to....


  • 14.  RE: How can I uninstall altiris agent on workstation?

    Posted Dec 01, 2009 09:42 AM
    Hello Kyle,

    Yes UCLA shift to System Center Configuration Manager and Operation Manager most likelty due to the cost... so still trying to close the Altiris stuff and helping anyway if i might know...

    Thanks,
    Dom


  • 15.  RE: How can I uninstall altiris agent on workstation?

    Posted Dec 01, 2009 09:44 AM
    Yes the sysinternal files are installed and I use them. if I run the process locally it works but through SCCM it fails even asking for a local run... it seems to be on the third statement \\%DS%\\...

    I suspect now the validity of this paratemer through SCCM as for DS push it will be known as a basic ... but SCCM not sure...

    Thanks


  • 16.  RE: How can I uninstall altiris agent on workstation?

    Posted Dec 01, 2009 10:23 AM
    Yes, SMS is not going to have any idea about %DS%, unless you add
    SET DS=MYDSSERVER 
    to the top of the file, or have previously defined a global environment variable on all machines.


  • 17.  RE: How can I uninstall altiris agent on workstation?

    Posted Dec 01, 2009 10:24 AM
    Any chance you still have a DS console still running?  If so, you can remotely uninstall the AClient via the console.


  • 18.  RE: How can I uninstall altiris agent on workstation?

    Posted Dec 01, 2009 10:40 AM
    Yes I have a DS Console still up for the next two days ONLY, it is why I am trying to have a clean-up process working also on the new system for the machines not yet uninstalled. About 85% were uninstalled by the DS or the NS but the rest of the machines will remain with Altiris until they connect again (if it is not within the next two days, it will be only through SCCM).

    All ps files are on the DS at this location:
    C:\Program Files\Altiris\eXpress\Deployment Server\Tools\sysinternals

    Thanks,
    Dom


  • 19.  RE: How can I uninstall altiris agent on workstation?

    Posted Dec 01, 2009 11:31 AM
    Yes I have this set:

    SET DS=Altirisbackup

    but still failing...

    [quote]
    C:\WINDOWS\system32\CCM\Cache\TST00004.2.System>rem @echo off
    C:\WINDOWS\system32\CCM\Cache\TST00004.2.System>SET DS=altirisbackup.ad.medctr.ucla.edu
    C:\WINDOWS\system32\CCM\Cache\TST00004.2.System>IF NOT == SET DS=
    [/quote]

    this is the log I obtain on the local machine when running delatiris.cmd > delaltiris.log...
    nothing after this third line...

    after removing the line IF NOT USERDOMAIN... it works now...

    Thanks
    Dom


  • 20.  RE: How can I uninstall altiris agent on workstation?

    Posted Dec 01, 2009 11:57 AM
    OK, so just replace all \\%DS% with \\ALTIRISBACKUP and you're done.


  • 21.  RE: How can I uninstall altiris agent on workstation?

    Posted Dec 01, 2009 12:33 PM
    it works now thanks


  • 22.  RE: How can I uninstall altiris agent on workstation?

    Posted Dec 01, 2009 02:34 PM
    Sam_H:
    Any luck with your uninstallation question, where we got started on all of this? :-)


  • 23.  RE: How can I uninstall altiris agent on workstation?

    Posted Dec 01, 2009 03:51 PM
    FYI:  The original question is more than a year old.  My guess is his issue was either resolved or he moved on.