Creating a service with another userid/password but LocalSystem

When I install a service using myservice.exe --install it hard codes the LocalSystem account as LogonAs userid. I had to manually modify it.

image

Is there a way to specify the credentials as a parameter of --install?

2 Likes