Retrieves the names of the first-level objects in the Configuration container.

Visual Basic
Edit|Remove
Set objConfiguration = GetObject _
    ("LDAP://cn=Configuration,dc=fabrikam,dc=com")
 
For Each objContainer in objConfiguration
    WScript.Echo objContainer.Name
Next