Sladescross's Blog

Blogging about Sharepoint related stuff

Get The AD Domain Name August 24, 2010

Filed under: Active Directory,Active Directory Domain Name,Domain,Domain Name — sladescross @ 1:29 pm

http://blog.dotsmart.net/2009/03/11/getting-a-machine%E2%80%99s-netbios-domain-name-in-csharp/

Domain.GetComputerDomain().Name from System.DirectoryServices.ActiveDirectory

About these ads
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 63 other followers