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

Exit code with a task script editing the registry

$
0
0
I need a solution

I have the data below setup in a task script, choosing Command Script for the task script. Altiris runs the script and comes back with a Last Status = Failure with Exit Code 1. I see that exit code 1 could mean many different things but which one is bringing up the code 1? I recently added the redirect and log file to each line. But that did not help me, the log files are blank.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

@ECHO OFF
ECHO Removal of registry keys. Post-Migration of e-mail

ECHO 1. HKCU\Software\Novell
reg delete "HKEY_CURRENT_USER\Software\Novell" /f  >> c:\reg1.log

ECHO 2. HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Novell GroupWise
reg delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Novell GroupWise" /f >> c:\reg2.log

ECHO 3. HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Novell Default Settings
reg delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Novell Default Settings" /f >> c:\reg3.log

EXIT

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 


Viewing all articles
Browse latest Browse all 6689

Trending Articles



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