Uregnt - Query Child containers.
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Uregnt - Query Child containers.

 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming
Author Message
David M
Guest





Posted: Thu Jan 06, 2005 8:55 pm    Post subject: Uregnt - Query Child containers. Reply with 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.
Back to top
Torgeir Bakken (MVP)
Guest





Posted: Thu Jan 06, 2005 10:54 pm    Post subject: Re: Uregnt - Query Child containers. Reply with quote

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
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB