I will have a service that will run on an XP machine and run as system. I need to write a script that this service will call and report back the current user logged in, their display name, and if they logged in via the console or a remote desktop session. I know a little visual basic .net but was sure how to tell how the user logged in, such as console or remote desktop. I was also not sure how to find the current user. I know System.Environment.UserName works, but I think that shows the user running the app, not the current logged on user. Any help would be great.