A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Networking with Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Networking with Windows Vista Networking issues and questions with Windows Vista. (microsoft.public.windows.vista.networking_sharing)

using .Net DirectoryEntry to enumerate domains



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old October 17th 08, 07:49 PM posted to microsoft.public.windows.vista.networking_sharing
DreamU
external usenet poster
 
Posts: 5
Default using .Net DirectoryEntry to enumerate domains


I am using the DirectoryEntry class to enumerate all the workgroups 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()
.....
Next

It 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?


--
DreamU
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2012 Vista Banter.
The comments are property of their posters.