Video Screencast Help
Search Video Help Close Back
to help

How to get batch files to stop and start SEP?

Created: 24 Sep 2012 | Updated: 24 Sep 2012 | 7 comments
BE Admin's picture
0 0 Votes
Login to vote
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

SEPM Knowledgebase Documents  

 

+1
Login to vote
  • Actions
Brian81's picture

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

+1
Login to vote
  • Actions
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)

+1
Login to vote
  • Actions
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
Symantec Technical Support Engineer, SEP
MIM | MCSA | MCTS | STS | ITIL v3

Twitter: @mithun_sanghavi

Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.<&a

SOLUTION
0
Login to vote
  • Actions
Brian81's picture

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

+1
Login to vote
  • Actions
BE Admin's picture

This is great, Thanks   :) 

0
Login to vote
  • Actions
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
+3
Login to vote
  • Actions