Quantcast
Channel: Symantec Connect - Endpoint Management - Discussions
Viewing all articles
Browse latest Browse all 6689

uninstalling Altiris Agent through bat file

$
0
0
I need a solution

before we start I scavenged a lot of this from https://www-secure.symantec.com/connect/articles/altiris-agent-migration-symantec-management-platform-75

We need to cleanly uninstall all the NS6 versions of Altiris from our computer environment.  The NS is already shutdown because the server basically blew up so we need to use a batch file and want it to completely remove all traces.  Will the below work?  Please keep in mind that I am a novice at scripting.  If my syntax is off or is cohesive please let me know.

@echo off

REM Stop Service
echo Stop Service
net stop aexnsclient
echo completed Stop Service

REM Perform clean uninstall of Agent and remove Directory
echo Perform clean uninstall of Agent and remove Directory
if exist "C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe""C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /uninstallagents
if exist "C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe""C:\Program Files\Altiris\Altiris Agent\AeXAgentUtil.exe" /clean
if exist "C:\Program Files\Altiris\Altiris Agent" RD /S /Q "C:\Program Files\Altiris\Altiris Agent"
echo Removal Successful

REM Delete Registry Keys
echo Delete Registry Keys
reg delete "HKLM\Software\Altiris\Altiris Agent" /va /f
reg delete "HKLM\Software\Altiris\Communication" /va /f
reg delete "HKLM\Software\Altiris\Express\NS Client" /va /f
reg delete "HKLM\Software\Altiris\Application Metering" /va /f
reg delete "HKLM\Software\Altiris\Carbon Copy" /va /f
reg delete "HKLM\Software\Altiris" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\AltirisAgent" /va /f
echo Registry keys Deleted


Viewing all articles
Browse latest Browse all 6689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>