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

前端 未结 4 1736
死守一世寂寞
死守一世寂寞 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:55

    Probably the issue is that it doesn't want quotes around the password. Same goes for the username.

    It perhaps cannot tell whether the quotes are part of the password or not.

    Alternatively it may be because the given account has not been granted the "log on as a service" privilege.

    Generally you should check the Security event log, which will give the reason for the logon failure.

提交回复
热议问题