Subdomains

delstar

Well-known member
Joined
Jun 9, 2006
Messages
59
Programming Experience
1-3
Anyone know a way to get a list of subdomains of a domain using VB.net?
 
Nevermind, figured it out. For those of you interested, the code is as follows:

Sub ListDomains()
Dim objNameSpace

objNameSpace = GetObject("WinNT:")
For Each objDomain As Object In objNameSpace
ListBox1.Items.Add(objDomain.Name)
Next
End Sub
 
OK, maybe it's not as solved as I had thought. That's returning the domains and workgroups, but not the subdomains. Any ideas?
 
Back
Top