List<string> DomainList = new List<string>(); var forest = Forest.GetCurrentForest(); foreach (Domain dm in forest.Domains) { DomainList.Add(dm.Name); }
Pete O'Hanlon wrote:Part of the problem you are having here is that your IIS account will probably not be running as a domain account. Have a look at this thread for more information of things to do: http://directoryprogramming.net/forums/thread/1103.aspx[^]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)