Monthly archives: May 2013

How to get all domain controllers IP Addresses and names within one forest using C#

hello there check below code if you are interested in getting all Active directory Domain Controllers Names and IP addresses within one forest   Forest obj = System.DirectoryServices.ActiveDirectory.Forest.GetCurrentForest(); DomainCollection collection = obj.Domains; foreach (Domain domain in collection) { DomainControllerCollection domainControllers…

Posted in Programming | Leave a comment

c# how to get Domain Controller NETBIOS Name from DNS Name

Hello There, couple of days back i needed to translate Domain Controllers Netbios Name to DNS Names and vice-versa, all the domain controllers resides in the same forest. Check below how to do it¬†programmatically¬†using C#   /// <summary> /// Get…

Posted in Programming | Leave a comment

Swedish Greys - a WordPress theme from Nordic Themepark.