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\"
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.