Not sure why jncadmin is using UNC path for the target since NET STOP and NET START is done locally already. Perhaps this is what is was meant.
@ECHO OFF
NET STOP "SERVICE NAME"
COPY \\server\share\SyLink.xml "c:\Program Files\Symantec\Symantec EndPoint Protection\" /y
NET START "SERVICE NAME"
If you put the batch file and the SyLink.xml file in the same directory like the GPO sysvol. Then change the source to reference the current directory using %~dp0
@ECHO OFF
NET STOP "SERVICE NAME"
COPY %~dp0SyLink.xml "c:\Program Files\Symantec\Symantec EndPoint Protection\" /y
NET START "SERVICE NAME"
Main Topics
Browse All Topics





by: jncadminPosted on 2008-07-28 at 09:10:57ID: 22104419
You can do this in a bat file. Just replace the server with your info and leave the rest and you should be all set.
am Files\Symantec\Symantec Endpoint Protection\" /y
@ECHO OFF
NET STOP "SERVICE NAME"
copy \\server\SyLink.xml "\\%computername%\c$\Progr
NET START "SERVICE NAME"
That is service name actually needs to be the service name and not the exe and needs the quotes