List the Names of All Objects in the Configuration Container

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

VBScript Code


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