-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant start service as a different user. #24
Comments
Hello Saif,
This looks like an authorization issue.
Did you make sure that the account you want to use for the service has the "Log on as a service" right?
Jean-François
…----- Mail original -----
De: "Saif Ali" <[email protected]>
À: "JFLarvoire/SysToolsLib" <[email protected]>
Cc: "Subscribed" <[email protected]>
Envoyé: Lundi 2 Décembre 2019 13:05:30
Objet: [JFLarvoire/SysToolsLib] Cant start service as a different user. (#24)
I have tried to install this service as different users using Credential param. I need it to run as a part of my automation to install windows services.
With the PSService -Start command, the service logs as started.
But it does not run the PSService -Service command to actually run the service.
PSService -SCMstart works, but it is for test purposes only and also opens a window of my script execution which I donot want.
How do I get to run the service as a different user?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub , or unsubscribe .
|
Yes. it does have log on as service rights. But does not start. |
I'm sorry, but I don't have any other idea for your case.
Running under a different account works for many other people, so it should work for you too.
Look in the event log for progress information, and possible error messages.
Try adding more logging, to have more information on how far the various processes go before failing.
And when you find what's wrong for you, please post it here to help others in the future.
Jean-François
…----- Mail original -----
De: "Saif Ali" <[email protected]>
À: "JFLarvoire/SysToolsLib" <[email protected]>
Cc: "JFLarvoire" <[email protected]>, "Comment" <[email protected]>
Envoyé: Mercredi 4 Décembre 2019 12:08:21
Objet: Re: [JFLarvoire/SysToolsLib] Cant start service as a different user. (#24)
Yes. it does have log on as service rights. But does not start.
I read in the previous issues that you have faced similar issues with other accounts?
any solution?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub , or unsubscribe .
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have tried to install this service as different users using Credential param. I need it to run as a part of my automation to install windows services.
With the PSService -Start command, the service logs as started.
But it does not run the PSService -Service command to actually run the service.
PSService -SCMstart works, but it is for test purposes only and also opens a window of my script execution which I donot want.
How do I get to run the service as a different user?
The text was updated successfully, but these errors were encountered: