Torgeir Bakken (MVP)
Guest
|
Posted:
Thu Jan 06, 2005 10:54 pm Post subject:
Re: Uregnt - Query Child containers. |
|
|
David M wrote:
| Quote: | I have written a VBS to modify user attributes, modelled on code found at the
MS scripting center. Our "Users" container has 4 child containers.
Currently I have to run the script against each child container individually.
Is there any way I can make my script traverse all the child containers to
locate and modify the attributes of users located in the different child
containers ? Any help would be greatly appreciated. Thanks.
Hi |
I suggest you use an ADO search with the subtree parameter set.
You might want to take a look at some of the examples here:
AD Searches
http://www.rlmueller.net/freecode6.htm
also "ADO Search Tips" here:
http://www.rlmueller.net/links_and_references.htm
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx |
|