Endpoint Protection

 View Only
  • 1.  smc -stop in a batch file with password.

    Posted Jul 01, 2010 12:38 AM
    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.





  • 2.  RE: smc -stop in a batch file with password.

    Broadcom Employee
    Posted Jul 01, 2010 12:47 AM
    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


  • 3.  RE: smc -stop in a batch file with password.

    Posted Jul 01, 2010 12:51 AM
    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)


  • 4.  RE: smc -stop in a batch file with password.

    Posted Jul 01, 2010 01:05 AM
    Hi Prachand

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



  • 5.  RE: smc -stop in a batch file with password.

    Broadcom Employee
    Posted Jul 01, 2010 01:17 AM
    yes, there are no arguments associated with smc


  • 6.  RE: smc -stop in a batch file with password.

    Posted Jul 01, 2010 01:34 AM
    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.....


  • 7.  RE: smc -stop in a batch file with password.

    Broadcom Employee
    Posted Jul 01, 2010 03:14 AM
    kudos!
    it worked.yes


  • 8.  RE: smc -stop in a batch file with password.

    Posted Jul 01, 2010 05:55 AM

    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.


  • 9.  RE: smc -stop in a batch file with password.
    Best Answer

    Posted Jul 01, 2010 06:44 AM

    Try this

    @echo off
    echo.

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


    echo End of script.
    echo.




  • 10.  RE: smc -stop in a batch file with password.

    Posted Jul 02, 2010 01:09 AM
    Thanks Prachand

    It Worked great.