Friday, 4 January 2013

get machine domain name C#

get machine domain name C#


           Console.Write("MachineName={0}",System.Environment.MachineName);
            Console.Write("DomainName={0}",System.Environment.UserDomainName);


forex:  output:
 MachineName:   SP2010
 DomainName: SPDOM