eyetea Posted September 6, 2017 Posted September 6, 2017 (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 September 6, 2017 by eyetea
Davit2005 Posted September 6, 2017 Posted September 6, 2017 Multiple select not work for adding to groups? 1
jthompson Posted September 6, 2017 Posted September 6, 2017 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. 1
timbo343 Posted September 6, 2017 Posted September 6, 2017 A quick google and this might help.. http://www.oxfordsbsguy.com/2015/03/09/powershell-how-to-add-all-users-in-an-ou-to-a-security-group-using-get-aduser-and-add-adgroupmember/
HPlum78 Posted September 7, 2017 Posted September 7, 2017 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....
Homer Posted September 25, 2017 Posted September 25, 2017 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now