Using sc command we can query, start , stop windows services.
For ex:
sc query 'windows service name'
The sc config command changes the configuration of the service, but I don’t know how to use it.
Could someone tell me how we can set the username and password for any windows service?
This works:
Where each of the [bracketed] items are replaced with the true arguments. (Keep the quotes, but don’t keep the brackets.)
Just keep in mind that:
obj= 'foo'is correct;obj='foo'is not.