What account is my service running as?
-
03-07-2019 - |
Question
How do I determine what account a service is running as from within the service itself.
Solution
A language would have been useful..
In C++: GetUserName
C#
System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow