Jump to content

Recommended Posts

Posted (edited)

Is there a quick / easy way to add all the users in an OU into a security group?

 

After caffeine... right click add to group...

Edited by eyetea
Posted

There's no doubt a PowerShell command for this, but in ADUC you can select the required users together and pick 'Add to a group' from a right-click (on the selected users, not on the OU object itself).

 

Tread carefully though, as there's no right-click option to remove from a group.

  • Thanks 1
Posted

Get-ADUser -SearchBase 'OU=External,OU=User Accounts,DC=Sch,DC=UK' -filter * | select samAccountName | Add-ADGroupMember -identity '%YourGroupName%'

 

That would do it off top of my head....

  • 3 weeks later...
Posted
Or open the group, go to members > add, open advanced, change locations to the OU in question then click find now and select everyone (click at the top then shift click at the bottom) then ok and done :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...