Display OU's





-7
Date Submitted Thu. Mar. 2nd, 2006 5:30 AM
Revision 1 of 1
Syntax Master dannyboy
Tags ACTIVEDIR | OU | VBSCRIPT
Comments 0 comments
Display all ou's in an active directory environement

Function DisplayObjects(strADsPath)
   set objObject = GetObject(strADsPath)
   WScript.Echo strSpace & strADsPath
   objObject.Filter = Array("organizationalUnit")
   For each objChildObject in objObject
      DisplayObjects objChildObject.ADsPath
   Next
End Function
 

Comments

There are currently no comments for this snippet.

Voting