Home  
  Microsoft  
  Cisco  
  CompTIA  
  CWNP  
  InfoSecurity  
  Forums  
  Blogs  
  Topsites  
  Watch free videos online  
     
  Subnet Calculator  
  Online Degrees  
  Exam Vouchers  
  Free Magazines  
     

  Watch free videos online  
   

 

Register Practice Exams TechNotes Members List Search Today's Posts Mark Forums Read
Go Back   TechExams.net IT Certification Forums > Microsoft > MCSA / MCSE on Windows 2003 General > 70-294 AD Infra
Reply
 
Thread Tools
Question Mark Member
Registered Member
 
rjbarlow's Avatar
 
Join Date: Apr 2007
Location: the few neurons in my brain... Italy!
Posts: 419

Certifications: CCNA, MCSA 2k3: Messaging, MCP, 70-285. WIP: 70-236, 70-293
rjbarlow will become famous soon enough
Old 06-16-2009, 10:39 AM   #1 (permalink)
Default Wildcard character for "All objects in an OU"

Exists?
It's quite tiring beating each time all the User Accounts when creating a new Group. Would be appreciate even a workaround.

TY



__________________
Pork 3
Maindrian's music

WIP: 70-236, 70-293 and MCSE.

rjbarlow is offline   Reply With Quote

Login/register to remove this advertisement.
Senior Member
 
Join Date: Mar 2007
Posts: 12,182

dynamik is a splendid one to beholddynamik is a splendid one to beholddynamik is a splendid one to beholddynamik is a splendid one to beholddynamik is a splendid one to beholddynamik is a splendid one to beholddynamik is a splendid one to behold
Old 06-16-2009, 01:03 PM   #2 (permalink)

You're just trying to add all the users of an OU to a group?



__________________
''=~('(?{'.('[-@.^~'^'+_)@*^').'"'.('@.&@-@@<@~$@^~.@^_'^')@@/^)%[%^@/*^@%*}').',$/})')

dynamik is offline   Reply With Quote
Question Mark Member
Registered Member
 
rjbarlow's Avatar
 
Join Date: Apr 2007
Location: the few neurons in my brain... Italy!
Posts: 419

Certifications: CCNA, MCSA 2k3: Messaging, MCP, 70-285. WIP: 70-236, 70-293
rjbarlow will become famous soon enough
Old 06-16-2009, 02:42 PM   #3 (permalink)

Quote:
Originally Posted by dynamik View Post
You're just trying to add all the users of an OU to a group?
Yes, that exactly, ther's a way?



__________________
Pork 3
Maindrian's music

WIP: 70-236, 70-293 and MCSE.

rjbarlow is offline   Reply With Quote
New Member
Registered Member
 
royal's Avatar
 
Join Date: Jul 2006
Location: Chicago, IL
Posts: 3,376

Certifications: A+, Network+, MCSE:M 2003, MCITP: Enterprise Messaging Administrator, MCTS: OCS (Conf/Voice)/Hyper-V, Exchange MVP, B.S.
royal is a jewel in the roughroyal is a jewel in the roughroyal is a jewel in the roughroyal is a jewel in the rough
Old 06-16-2009, 10:27 PM   #4 (permalink)

1. Install PowerShell
2. Install the QAD Snapin by reading the following: Shariq Sheikh | Port 389 Blog Archive Put Powershell and QAD cmdlets together to become a lazier (yet smarter) System Admin
3. Obtain the Distinguished Name for the OU
4. Obtain the Distinguished Name for the Group
5. Run the following script: Get-QADUser -SearchRoot "DN of OU" | foreach-object { Add-QADGroupMember -identity "DN of Group" -member $_ }

Example -
DN of the OU: OU=Lab,OU=Root,DC=shudnow,DC=net
DN of the Group: CN=LabGroup,OU=Root,DC=shudnow,DC=net

The command would appear as:
Get-QADUser -SearchRoot "OU=Lab,OU=Root,DC=shudnow,DC=net" | foreach-object { Add-QADGroupMember -identity "CN=LabGroup,OU=Root,DC=shudnow,DC=net" -member $_ }

You can obtain the DN using ADSIEdit or LDP.



__________________
“For success, attitude is equally as important as ability.” - Harry F. Banks

royal is offline   Reply With Quote
Question Mark Member
Registered Member
 
rjbarlow's Avatar
 
Join Date: Apr 2007
Location: the few neurons in my brain... Italy!
Posts: 419

Certifications: CCNA, MCSA 2k3: Messaging, MCP, 70-285. WIP: 70-236, 70-293
rjbarlow will become famous soon enough
Old 06-17-2009, 05:15 PM   #5 (permalink)

I'll try this solution (not very soon though), but if works you're a devil Royal.



__________________
Pork 3
Maindrian's music

WIP: 70-236, 70-293 and MCSE.

rjbarlow is offline   Reply With Quote
New Member
Registered Member
 
royal's Avatar
 
Join Date: Jul 2006
Location: Chicago, IL
Posts: 3,376

Certifications: A+, Network+, MCSE:M 2003, MCITP: Enterprise Messaging Administrator, MCTS: OCS (Conf/Voice)/Hyper-V, Exchange MVP, B.S.
royal is a jewel in the roughroyal is a jewel in the roughroyal is a jewel in the roughroyal is a jewel in the rough
Old 06-18-2009, 01:53 AM   #6 (permalink)

Quote:
Originally Posted by rjbarlow View Post
I'll try this solution (not very soon though), but if works you're a devil Royal.
After I wrote the cmdlet, I tested it in my lab to see if it would work and low and behold, it did.



__________________
“For success, attitude is equally as important as ability.” - Harry F. Banks

royal is offline   Reply With Quote
Question Mark Member
Registered Member
 
rjbarlow's Avatar
 
Join Date: Apr 2007
Location: the few neurons in my brain... Italy!
Posts: 419

Certifications: CCNA, MCSA 2k3: Messaging, MCP, 70-285. WIP: 70-236, 70-293
rjbarlow will become famous soon enough
Old 06-18-2009, 06:56 AM   #7 (permalink)

Quote:
Originally Posted by royal View Post
After I wrote the cmdlet, I tested it in my lab to see if it would work and low and behold, it did.
I knew it for sure, it was just an academic doubt.



__________________
Pork 3
Maindrian's music

WIP: 70-236, 70-293 and MCSE.

rjbarlow is offline   Reply With Quote
Bookmarks
Go Back TechExams.net IT Certification Forums > Microsoft > MCSA / MCSE on Windows 2003 General > 70-294 AD Infra
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 06:55 AM.

 
 
Featured Sponsors

TrainSignal - “Hands On” computer training for IT professionals. Network+ Training, MCSE, Cisco & more! Visit Train Signal’s free training site to get loads of Free Computer Training, videos, articles and practice exams.

Preplogic - Sign up now to get Unlimited Access to PrepLogic's entire video training library. Enjoy open access to Microsoft Server 2008, CCNA, CISSP®, PMP and many more. Get Unlimited Access

 

Powered by vBulletin® Version 3.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
TechExams.net © 2002 - 2010