How to determine a computer's domain name in c#
So this is something that should be easy to do and something that should be posted
all over the internet. People like me should have no problem programmatically
finding a computer's domain name in C#. Well if you've stumbled across this
page, I hope this helps you out.
using System.Net.NetworkInformation;
String domainName = IPGlobalProperties.GetIPGlobalProperties().DomainName;
|