0

I'm try to install my Windows-service:

"C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe" /user="DOMAIN\Administrator" /password="Password^%" "ServiceName.exe"

But my service does not start. Exit with error:

[SC] StartService FAILED 1069:
The service did not start due to a logon failure.

because the password is incorrect.

I try use change password as like here, i.e. I run:

"C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe" /user="DOMAIN\Administrator" /password="Password^%%" "ServiceName.exe"

but it did not help.

Community
  • 1
  • 1
Stan Zeez
  • 1,138
  • 2
  • 16
  • 38
  • Possible duplicate of [Escaping special characters in cmd](http://stackoverflow.com/questions/10296162/escaping-special-characters-in-cmd). Double the `%` percent sign only in a batch script, don't do that from `cmd` window. – JosefZ Nov 23 '15 at 13:59
  • 1
    Try `"/password=Password^%"`or `"/password=Password%"` if your password is exactly `Password^%` or `Password%`, respectively. – JosefZ Nov 23 '15 at 18:10
  • Thanks! It's work. My clear password is **"Password^%"** and escaping of password with argument helped. i.e. **"/password=Password^%"**. – Stan Zeez Nov 25 '15 at 04:47

1 Answers1

0

Need to escape password with a argument as:

"C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe" /user="DOMAIN\Administrator" "/password=Password^%" "ServiceName.exe"
Stan Zeez
  • 1,138
  • 2
  • 16
  • 38