Activex component?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dumb Luck

    #1

    Activex component?

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

    colGroups = GetObject("WinN T://myDomain/,Groupcollectio n")

    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("WinN T://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

Working...