Video Screencast Help

smc -stop in a batch file with password.

Created: 30 Jun 2010 • Updated: 02 Aug 2010 | 9 comments
This issue has been solved. See solution.

when I use smc -stop command it asks me for password and after supplying password sep stops.

Now I want to create a batchfile in which i can set the password for smc -stop command which will not ask me the password to enter and stop sep.

something like this where my password is password

smc -stop pass:password

can anyone create this . please helpme.

Comments 9 CommentsJump to latest comment

pete_4u2002's picture

there should be a way in terms of changing in registry, however just entering passwor din the script may not ehlp ( my understanding) since its interface where you type in password, the script may not fulfil.

Me too curious to know smiley

P_K_'s picture

I am not so good with scripts

but create script and to add a password to stop smc add this line to the script

"%programfiles%\symantec\symantec endpoint protection\smc.exe" –stop – p ********  ( where ******* is your password)

MCT MCSE-2012 Symantec Technical Specialist (SCTS)

Bijay.Swain's picture

Hi Prachand

smc.exe  –stop – p ********
Not working as it still asking for password

Mudit Kumar's picture

Bijay,

Have you tried -p without a space, because it looks like there is a space between - and p. The space should not be there.

Thanks & Regards,
Mudit Kumar
 

P_K_'s picture

Try this

@echo off
echo.

"%programfiles%\symantec\symantec endpoint protection\smc.exe" -stop -p *******

echo End of script.
echo.

MCT MCSE-2012 Symantec Technical Specialist (SCTS)

SOLUTION
AravindKM's picture

I created a batch file like this

Password I kept as passw0rd for stopping the smc service.
@echo off
cd c:\Program Files\Symantec\Symantec Endpoint Protection
smc -stop -p passw0rd
echo "smc service stopped"
pause
exit

It worked for me.....

Please don't forget to mark your thread solved with whatever answer helped you : ) Thanks & Regards Aravind