Gets network domain name associated with the current user.
using System; class Sample { public static void Main() { Console.WriteLine("UserDomainName: {0}", Environment.UserDomainName); } }