.Net DirectoryEntry class path=WinNT:
I am using the DirectoryEntry class to enumerate all the workgoups on a network (there are only two). Pretty simple VB code.Dim de_domain As New DirectoryEntry()de_domain.Path = "WinNT:"For Each domain As DirectoryEntry In de_domain.Children().....NextIt works well. In the future I will be taking this program into a network environment using a domain server, rather than workgroups. I want to be prepared for that. My question is: will the same code enumerate the computers on a domain server network?According to Microsoft documentation the Path property is useful to: "Discover all domains on the network. For example, 'WinNT:' The domains can be found by enumerating the children of this entry." But networking has never been my strong suit and I am not sure if I should take that statement at face value. WinNT: is not a codename for Workgroups is it?
October 17th, 2008 5:43pm

Hi, Your question is related to source code. For this kind of issues, please contact our MSDN support. http://msdn.microsoft.com/en-us/default.aspx Hope it will be helpful.
Free Windows Admin Tool Kit Click here and download it now
October 20th, 2008 10:52am

I use code likes this to discover all available domains. But when I am trying to use the same code on Windows Server 2008 (PDC)- I have got empty list. Even no domain entry for the current server... DreamU wrote: ... Dim de_domain As New DirectoryEntry()de_domain.Path = "WinNT:"For Each domain As DirectoryEntry In de_domain.Children().....NextIt works well. In the future I will be taking this program into a network environment using a domain server, rather than workgroups. I want to be prepared for that. My question is: will the same code enumerate the computers on a domain server network?According to Microsoft documentation the Path property is useful to: "Discover all domains on the network. For example, 'WinNT:' The domains can be found by enumerating the children of this entry." ...
November 6th, 2008 10:50am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics