Using "DirectorySearcher" class how to query for required machine name?

Mar 22 2010 4:15 AM

hi,

I have a wpf application, where it loads all domain names in a tree view & in the right hand side I have text box where user is given an search option to find machine name.

So i wanted to know if we can directly query for machine name using DirectorySearcher class without taking an insatance of DirectoryEntry which takes time to list out all machine names!!

Please give me a solution..I am new to .net