pharaoh fortune slot
ExamNotes.net
Welcome, Guest. Please login or register.
November 20, 2017, 07:06:13 PM

Login with username, password and session length
* Home Help Search Login Register
+  ExamNotes.net
|-+  General discussions
| |-+  Programming Forum
| | |-+  VB Script won't Enumerate
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: VB Script won't Enumerate  (Read 1133 times)
mindmesh
Spit Fire
Hero Member
*****
Offline Offline

Posts: 1623

2


View Profile
« on: January 11, 2005, 01:09:35 PM »

I'm writing a script to list all the users in a specified group, right now the script is setup to list everything in the container.

Set objGroup = GetObject _
    ("LDAP://cn=TransUser,cn=users,dc=Domain,dc=com")
 
For Each objUser in objGroup
    Wscript.Echo objUser.Name
Next

When I run this script nothing happens, but when I run the script below it works fine. Only difference is the group. It's the TransUsers Parent container.

Set objGroup = GetObject _
    ("LDAP://cn=users,dc=Domain,dc=com")
 
For Each objUser in objGroup
    Wscript.Echo objUser.Name
Next

Any ideas why this doesn't work when I try to Bind two containers deep, but works fine when I bind it one container deep?

Thanks.
Logged

I take no responsibility for the offensive nature of this post.. If you take offense I am sorry, but honestly don't give a damn. All rights reserved!!
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!