How to Get Computer Names in a Domain?AMAbhi MFC13yAsked Mar 11, 2013, 2:13 AM EDT2 answersShareLinkedInXCopy linkSaveHi,Can anyone let me know How can I get the list of computers name in a Domain in C#.ThanksAbhi2 AnswersKnow the answer? Post it. Somebody with the same question will find it here.Vishal GilbileRank #269 · 9.4K points13y agoPosted Mar 11, 2013, 2:18 AM EDT0Hi there,You need to use namespace using System.Net; and the following line of code.string hostName=Dns.GetHostName();With Regards,Vishal Gilbile.0AMAbhi MFC7 points13y agoPosted Mar 11, 2013, 8:36 PM EDT0Hi Vishal string hostName=Dns.GetHostName();Will give our computer name,But I need entire computer names present in the domain.ThanksAbhi0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign in
How to Get Computer Names in a Domain?AMAbhi MFC13yAsked Mar 11, 2013, 2:13 AM EDT2 answersShareLinkedInXCopy linkSaveHi,Can anyone let me know How can I get the list of computers name in a Domain in C#.ThanksAbhi
Vishal GilbileRank #269 · 9.4K points13y agoPosted Mar 11, 2013, 2:18 AM EDT0Hi there,You need to use namespace using System.Net; and the following line of code.string hostName=Dns.GetHostName();With Regards,Vishal Gilbile.0
AMAbhi MFC7 points13y agoPosted Mar 11, 2013, 8:36 PM EDT0Hi Vishal string hostName=Dns.GetHostName();Will give our computer name,But I need entire computer names present in the domain.ThanksAbhi0
Vishal GilbileRank #269 · 9.4K pointsPosted Mar 11, 2013, 2:18 AM EDT
You need to use namespace
using System.Net;
and the following line of code.
string hostName=Dns.GetHostName();
With Regards,
Vishal Gilbile.
Abhi MFC7 pointsPosted Mar 11, 2013, 8:36 PM EDT
string hostName=Dns.GetHostName();
Will give our computer name,But I need entire computer names present in the domain.
Thanks
Abhi