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