Adding users to a group has NEVER been easier! In Server 2008 R2 using Active Directory Modules you have one dead simple command.
It’s easy, it’s simple, it’s intuitive……
If you have a Security Group in Active Directory called “REALLYIMPORTANTACCESS” and you need to add John.Smith or Mary.Jones to that Group? Well hold onto your seats
ADD-ADGROUPMEMBER REALLYIMPORTANTACCESS john.smith,mary.jones
DONE! No headaches.
Now to REMOVE a User from a Group? Just as EASY! If you found later on that “joe.bloe” was in that group? No problem!
REMOVE-ADGROUPMEMBER REALLYIMPORTANTACCESS joe.bloe
Easy! And to boot it WARNS you BEFORE it performs the action. A BUILT IN Safety!
And as always you can pass in variables to this commandlet, alternate credentials, for other domains or pipe in Data from other queries to automate your life! All this is EASILY doable and repeatable from the comfort of your desktop.
Powershell, IT’S SCRIPTABLY DELICIOUS!
The Energized Tech