Video Screencast Help

How to get batch files to stop and start SEP?

Created: 24 Sep 2012 • Updated: 24 Sep 2012 | 7 comments
Sinner xyz's picture
This issue has been solved. See solution.

How to create batch files to stop and start SEP, which can be used like pre and post  during backups?

 

I tried using "net stop service and start", but looks like these services are protected by some another service etc.

 

Thanks in advance

Comments 7 CommentsJump to latest comment

Ashish-Sharma's picture

HI,

You can disable Tamper Protection after you will be able to disable SEP service.

Thanks In Advance

Ashish Sharma

 

 

.Brian's picture

Check the log. See if tamper protection is blocking it.

Please click the "Mark as solution" link at bottom left on the post that best answers your question. This will benefit admins looking for a solution to the same problem.

SMLatCST's picture

Gnenerally speaking, you'd want to use the below commands to stop/start SEP:

smc -stop

smc -start

The "SMC" executable itself is normally located in "C:\Program Files\Symantec\Symantec Endpoint Protection".

On a related note, have you been through the below Backup related articles?

http://www.symantec.com/docs/TECH168940
http://www.symantec.com/docs/TECH105418

These are both specifically related to Backup Exec (which is what I assume you're using given your profile name wink)

Mithun Sanghavi's picture

Hello,

In your case you may like to check this Article: 

Windows Backup fails after installing Symantec Endpoint Protection 12.1

http://www.symantec.com/docs/TECH168402

Also, you may like to - 

1. Disable Tamper Protection.
2. Stop SMC (smc –stop) 
3. Start SMC (smc –start)
4. Re-enable Tamper Protection.

You could also check this Article: http://www.symantec.com/docs/TECH177584

and this Download: https://www-secure.symantec.com/connect/downloads/script-convert-unmanaged-system-managed-system

NOTE: The download above is not provided by Symantec and there by would not be reponsible for any after effects.

Hope that helps!!

Mithun Sanghavi
Senior Consultant
MIM | MCSA | MCTS | STS | SSE | SSE+ | ITIL v3

Don't forget to mark your thread as 'SOLVED' with the answer that best helped you.

SOLUTION
.Brian's picture

If the client has a password on it to stop the service, you will need to include -p <password> as well

Please click the "Mark as solution" link at bottom left on the post that best answers your question. This will benefit admins looking for a solution to the same problem.

megamanVI's picture

I use PSEXEC to remotely restart SEP on a client.

 

 

psexec \\%remotecomputer% "C:\Program Files\Symantec\Symantec Endpoint Protection\smc.exe" -stop
ping -n 15 -w 1 127.0.0.1>nul
psexec \\%remotecomputer% "C:\Program Files\Symantec\Symantec Endpoint Protection\smc.exe" -start