MessageBox.Show(System.Environment.UserName);
System.Security.Principal.WindowsIdentity identity = System.Security.Principal.WindowsIdentity.GetCurrent(); MessageBox.Show(identity.Name);