Receiveing Computer properties from active directo
Dear Freinds,
I am trying to receive a computer properties by using the active directory.
The properties may be: Computer Name, DNS name, Description etc ..
The follwoing code is used:
DirectorySearcher mySearcher = new DirectorySearcher(entry);
SearchResult result = mySearcher.FindOne();
foreach(SearchResult result in ySearcher.FindAll())
{
strName = result.GetDirectoryEntry().Name;
string allNames = this.GetProperties(result.GetDirectoryEntry());
}
However only the name of the computer is accessed.
Apprecaite your assistance how can I receive the DNS, Description Etc. ...
THanks,
moti
|