Post date: Dec 20, 2012 3:45:27 PM
Delete the RED lines
REM **************************************************
REM ********Runs Sylnk Drop to replace Sylink file*********
REM **************************************************
if exist c:\SylinkReplaced.txt goto done
Checks if the textfile sylnkreplaced.txt exists and if it does skips the rest of the script by going straight to done
@echo off
Hides all comments while running
echo Sylink has been replaced successfully > c:\SylinkReplaced.txt
Creates the text file and writes the following test inside it “Sylink has been replaced successfully”
copy \\servername\sharename\sylinkdrop\sylinkdrop.exe C:\
Copies the sylink drop application to the c drive of the users machine
copy \\servername\sharename\sylinkdrop\sylink.xml C:\
Copies the new sylink file that will replace the original to the c drive of the users machine
c:\sylinkdrop.exe -silent -p PASSWORD_TO_UNINSTALL_SYMANTEC c:\sylink.xml
Runs sylinkdrop.exe in silent mode using the password needed to uninstall the agent. If there is not password then leave that part out
REM********************
REM ***Begin Clean up***
REM********************
del C:\sylinkdrop.exe
Delete’s the sylinkdrop application from C drive of the user’s machine
del C:\sylink.xml
Delete’s the new sylink from C drive of the user’s machine
:done
exit