Disable/Enable Symantec Protection via Command Line

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” (

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”

)

)

)

if “%1” == “stop_ntp” (

echo “not supported”

)else(

echo “usage: symantic start|stop”

)

)

)