+ Reply to Thread
Results 1 to 7 of 7
  1. Question Mark 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
    #1

    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
    Reply With Quote Quote  

  2. SS -->
  3. Senior Member
    Join Date
    Mar 2007
    Posts
    12,308
    #2
    You're just trying to add all the users of an OU to a group?
    Reply With Quote Quote  

  4. Question Mark 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
    #3
    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?
    Reply With Quote Quote  

  5. New Member royal's Avatar
    Join Date
    Jul 2006
    Location
    Chicago, IL
    Posts
    3,373
    #4
    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.
    Reply With Quote Quote  

  6. Question Mark 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
    #5
    I'll try this solution (not very soon though), but if works you're a devil Royal.
    Reply With Quote Quote  

  7. New Member royal's Avatar
    Join Date
    Jul 2006
    Location
    Chicago, IL
    Posts
    3,373
    #6
    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.
    Reply With Quote Quote  

  8. Question Mark 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
    #7
    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.
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks