Disable / Enable Symantec Protection via Command Line

by Brett on November 5, 2011

On occasion I need to run some software tests where Symantec gets in the way. So I put together a simple batch file that will stop and start Symantec. Just add the following commands to a symantec.bat file. Then you can run the commmands symantec start or symantec stop.

if "%1" == "stop" (
        echo "stopping"
	net stop "Symantec Endpoint Protection"
	net stop "Symantec Event Manager"
	net stop "Symantec Settings Manager"
	net stop "Symantec Network Access Control"
	"c:\Program Files\Symantec\Symantec Endpoint Protection\smc.exe" -stop
) else (
	if "%1" == "start" (
		echo "starting"
		net start "Symantec Endpoint Protection"
		net start "Symantec Event Manager"
		net start "Symantec Settings Manager"
		net start "Symantec Network Access Control"
		"c:\Program Files\Symantec\Symantec Endpoint Protection\smc.exe" -start
	) else (
		if "%1" == "stop_ntp" (
			echo "not supported"
		)else(
			echo "usage: symantic start|stop"
		)
	)
)

Previous post:

Next post: