Can anyone let me know How can I get the list of computers name in a Domain in C#.
Thanks
Abhi
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhi MFCPosted Mar 12, 2013, 12:36 AM
string hostName=Dns.GetHostName();
Will give our computer name,But I need entire computer names present in the domain.
Thanks
Abhi
Vishal GilbilePosted Mar 11, 2013, 6:18 AM
You need to use namespace
using System.Net;
and the following line of code.
string hostName=Dns.GetHostName();
With Regards,
Vishal Gilbile.