using System; namespace SimpleSecurity { class Class1 { [STAThread] static void Main(string[] args) { Console.WriteLine("I am currently running as:"); Console.WriteLine("User : {0}",Environment.UserName); Console.WriteLine("Domain : {0}",Environment.UserDomainName); } } }