JFLarvoire/SysToolsLib

Cant start service as a different user.

saaifali opened this issue · 3 comments

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?

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?