Click here to Skip to main content
15,883,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.

I want to know any service log on as.

I used serviceprocess, serviceInstaller .. any...
But don't get.

How can I get log on as??

What I have tried:

serviceprocess, serviceInstaller
Posted
Updated 1-Feb-21 14:17pm

1 solution

If you're asking how to get the account each service is using to logon to Windows, it's not so straight forward.

See the answer at C# Get service log on as using ServiceController class?[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900