By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,556 Members | 1,448 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,556 IT Pros & Developers. It's quick & easy.

Activex component?

P: n/a
I am trying to get a list of groups from my NT domain using vb. This
is my code.

colGroups = GetObject("WinNT://myDomain/,Groupcollection")

For Each Group In colGroups
Label1.Text = Label1.Text & " " & Group.Name
Next

When I run it, it says cannot create activex component. But if I do
this it works fine.

colGroups = GetObject("WinNT://myDomain/Domain Admins,group")

Label1.Text = Label1.Text & " " & Group.Name

I don't understand what is going on. Any ideas would be a great help.

Trevor

Feb 10 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.