|
|
|||||||
Basically this is a netview for OUs. I think there is more we could do with this, and was kind of looking for some ideas... Let me know. code:Here is a simple example:Function EnumAD(optional $ou,optional $filter,optional $detaillevel) break on $ouroot="ou=adtest" dim $ou $OUs=EnumAD($ouroot,"OrganizationalUnit",1) for each $ou in $OUs for each $computer in EnumAD("$ou,$ouroot","Computer",2) if $computer<>"" ? $computer endif next next [ 17. May 2003, 05:32: Message edited by: Al_Po ] |
||||||||
|
|
|||||||
I have found the when setting the filter using the shortcut arrsy form '$x.Filter = "user",""' worked on the WinNT:// provider but did not work when using the LDAP:// provider. What is the purpose of the "_" in '$ouobjects.Filter = "group","_"'? |
||||||||
|
|
|||||||
Howard, I happened to see a post by Shawn (I think) and he mentioned that the filter had to be an array, and one way for kixtart to recognize an array is to separate the values with a ",". The second value is nothing other than a place holder. I tried just using "" as well as what you described, and as you stated, it didn't work, but with something in that second position, it does work. [ 17. May 2003, 05:33: Message edited by: Al_Po ] |
||||||||
|
|
|||||||
As in my other code recently posted you can "Dim $aFilter[0]" then "$adFilter = 'group'" for LDAP://. I find it interesting that the "bogus" text string makes the shortcut way $aFilter = "group","_" work. Thanks for the tip. |