This tool didn't work for us, worked on some computers but no others. I have created a script which uses psexec to replace the sylink.xml file which works well on XP & Win7 computers (most likely others too but haven't tried).
To use:
1. Copy the script below into notepad (change the 3 [password] parts to your symantec password, and the version from 12.1.671.4971.105 if you are using a different version - check program files folder if you are unsure), and save with .bat file extension
2. Put psexec.exe file in the same directory of the script (google and download pstools if you don't have this)
3. Put your correct sylink.xml file in the same directory also
4. Put a list of client names/IPs in a file called clients.txt in the same directory
When you run the script, ignore the text that shows up in the window, just wait for it to say "Done" then close it. You will see two new files created called results.txt and failedclients.txt. Results shows each client and either "success" or an error (e.g. can't connect). Any clients that fail for any reason are put in the failedclients.txt list also, so you can later rename this to clients.txt and run the script again if you like.
Here is the batch script:
@echo off
REM Get IPs out of clients.txt file and run this script on each one
FOR /F "tokens=1,*" %%a IN (clients.txt) DO (
REM reset countrol variables
set sylinkpath=0
set smcpath=0
echo -------------------------------------------------- >> results.txt
echo %%a: >> results.txt
REM Make sure connection to system can be established
ping -n 1 %%a | find "Reply from" > NUL
if errorlevel 1 (
echo Can't connect >> results.txt
echo %%a >> failedclients.txt )
if not errorlevel 1 (
REM Find where smc.exe file is stored then stop the service
if exist "\\%%a\c$\Program Files\Symantec\Symantec Endpoint Protection\smc.exe" (
set smcpath=1
psexec.exe \\%%a "c:\Program Files\Symantec\Symantec Endpoint Protection\smc.exe" -p [password] -stop )
if exist "\\%%a\c$\Program Files\Symantec\Symantec Endpoint Protection\12.1.671.4971.105\Bin\smc.exe" (
set smcpath=2
psexec.exe \\%%a "c:\Program Files\Symantec\Symantec Endpoint Protection\12.1.671.4971.105\Bin\smc.exe" -p [password] -stop )
if exist "\\%%a\c$\Program Files\Symantec AntiVirus\12.1.671.4971.105\Bin\smc.exe" (
set smcpath=3
psexec.exe \\%%a "c:\Program Files\Symantec AntiVirus\12.1.671.4971.105\Bin\smc.exe" -p [password] -stop )
if smcpath==0 (
echo %%a >> failedclients.txt
echo Cannot find smc.exe >> results.txt
echo -------------------------------------------------- >> results.txt )
if not smcpath==0 (
REM Find where sylink.xml file is stored then replace it
if exist "\\%%a\c$\Program Files\Symantec\Symantec Endpoint Protection\sylink.xml" (
set sylinkpath=1
copy /y sylink.xml "\\%%a\c$\Program Files\Symantec\Symantec Endpoint Protection\" )
if exist "\\%%a\c$\ProgramData\Symantec\Symantec Endpoint Protection\12.1.671.4971.105\Data\Config\sylink.xml" (
set sylinkpath=2
copy /y sylink.xml "\\%%a\c$\ProgramData\Symantec\Symantec Endpoint Protection\12.1.671.4971.105\Data\Config\" )
if exist "\\%%a\c$\Documents and Settings\All Users\Application Data\Symantec\Symantec Endpoint Protection\12.1.671.4971.105\Data\Config\sylink.xml" (
set sylinkpath=3
copy /y sylink.xml "\\%%a\c$\Documents and Settings\All Users\Application Data\Symantec\Symantec Endpoint Protection\12.1.671.4971.105\Data\Config\" )
if sylinkpath==0 (
echo %%a >> failedclients.txt
echo Cannot find sylink.xml >> results.txt )
if not sylinkpath==0 (
echo Success >> results.txt )
REM Restart the smc.exe service
if exist "\\%%a\c$\Program Files\Symantec\Symantec Endpoint Protection\smc.exe" (
psexec.exe \\%%a "c:\Program Files\Symantec\Symantec Endpoint Protection\smc.exe" -start )
if exist "\\%%a\c$\Program Files\Symantec\Symantec Endpoint Protection\12.1.671.4971.105\Bin\smc.exe" (
psexec.exe \\%%a "c:\Program Files\Symantec\Symantec Endpoint Protection\12.1.671.4971.105\Bin\smc.exe" -start )
if exist "\\%%a\c$\Program Files\Symantec AntiVirus\12.1.671.4971.105\Bin\smc.exe" (
psexec.exe \\%%a "c:\Program Files\Symantec AntiVirus\12.1.671.4971.105\Bin\smc.exe" -start )
)
)
)
echo.
echo Done
echo.
pause