I am running windows service under Administrator account and I would like to find out who is the currently logged in user. It will be different from account WindowService is currently running under. Is there any easy way to get it from c#?
It is not: System.Security.Principal.WindowsIdentity.GetCurrent() neither System.Environment.UserName
thanks
edit
I am interested who is currently logged in with Console session. thanks jadarnel27
I am not interested in other remote sessions since this is not my case scenario.