Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Adding Laptops to a Group

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,60575
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Adding Laptops to a Group
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Adding Laptops to a Group - 5/22/2008 2:23:20 AM   
  scheule523

 

Posts: 9
Score: 0
Joined: 5/9/2008
Status: offline
Ok I need some help again. Basically i'm trying to write a script that will search through an entire OU (including sub OUs) for any computer object containing an "L" as it's 7th character and add them all to a group. Here is what I have right now:


      

I got all of the problems worked out except I don't know how to make it search through all sub or child OUs, it only grabs the computers under ACT but nothing deeper. Is there a way to do this without programming in every OU?  Any help would be appreciated.  Thanks!

< Message edited by scheule523 -- 5/22/2008 4:20:15 AM >
 
 
Post #: 1
 
 RE: Adding Laptops to a Group - 5/22/2008 5:56:29 AM   
  scheule523

 

Posts: 9
Score: 0
Joined: 5/9/2008
Status: offline
Alright I figured it out. Not sure if it's the most efficient way of doing things but it works!



      

(in reply to scheule523)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Adding Laptops to a Group Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts