1. Make “copy.bat” including all clients using bellow cmd . this will copy new Sylink.xml to client for temp to c:\ drive
Copy.bat :
“ xcopy SyLink.xml \\ IP adders of client \c$ “
2. Make second Script.bat This is the Script the doing all needed
Script.bat :
@echo off
:SYMANTEC
echo.
echo SEP-Client installed in %programfiles%\symantec\symantec endpoint protection
echo.
echo.
echo SEP-Client interface is stopping...
echo.
"%programfiles%\symantec\symantec endpoint protection\smc.exe" -stop
REM ## PING is used as delay since SMC.EXE takes some seconds to stop
REM ## but after running the command you have immediatly the prompt back
ping -n 20 127.0.0.1
echo.
echo Making a backup copy of previous Sylink.xml in Sylink.xm_
echo.
if exist "%programfiles%\symantec\symantec endpoint protection\SyLink.xm_" del /Q "%programfiles%\symantec\symantec endpoint protection\SyLink.xm_"
ren "%programfiles%\symantec\symantec endpoint protection\SyLink.xml" sylink.xm_bak
del /Q "%programfiles%\symantec\symantec endpoint protection\SyLink.xml"
echo.
echo Copying new SyLink.xml
echo.
copy C:\SyLink.xml "%programfiles%\symantec\symantec endpoint protection"
echo.
echo Starting SEP-Client interface...
"%programfiles%\symantec\symantec endpoint protection\smc.exe" -start
echo.
echo Deleting temp files
del /Q "c:\SyLink.xml"
Note : This Script can run only the Member of Domain Administrators or Local Administrators
Download scripts
http://www.symantec.com/connect/blogs/easy-way-replace-sylinkxml-sepm
ที่มา
http://www.symantec.com/connect/forums/easy-way-replace-sylinkxml-sepm
0 comments:
Post a Comment