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…
How to get all domain controllers IP Addresses and names within one forest using C#
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
immoral being
What is the need for moral values for human being, i used to believe that i know the answer for such a simple and boring question, but i don’t think that i know the answer anymore. Its seems that the…
Posted in Philosophy | Leave a comment
Parsing CSV File to Dictionary using C#
Hello every body, Today i will share with you how to import a CSV file into a dictionary using REGEX in c#. This works pretty fine if the file starts with a key, taking into consideration that the key should…
Posted in Programming | Leave a comment




