D delstar Well-known member Joined Jun 9, 2006 Messages 59 Programming Experience 1-3 Dec 14, 2007 #1 Anyone know a way to get a list of subdomains of a domain using VB.net?
D delstar Well-known member Joined Jun 9, 2006 Messages 59 Programming Experience 1-3 Dec 14, 2007 #2 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 Upvote 0 Downvote
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
D delstar Well-known member Joined Jun 9, 2006 Messages 59 Programming Experience 1-3 Dec 14, 2007 #3 OK, maybe it's not as solved as I had thought. That's returning the domains and workgroups, but not the subdomains. Any ideas? Upvote 0 Downvote
OK, maybe it's not as solved as I had thought. That's returning the domains and workgroups, but not the subdomains. Any ideas?