sc.exe config “Service Name” obj= “DOMAIN\User” password= “password” not working

前端 未结 4 1729
死守一世寂寞
死守一世寂寞 2020-12-31 10:27

I want to set password for a service from the cmd. I got the option

sc.exe config \"Service Name\" obj= \"DOMAIN\\User\" password= \"password\"

4条回答
  •  遥遥无期
    2020-12-31 10:33

    This worked for me:

    sc.exe stop "" 4:4:3
    sc.exe config "" obj= "./" password= ""
    sc.exe start ""
    

    So, in short: stop the service before config the password and the start will work fine.

提交回复
热议问题