PowerShell Script – Add users to a group or Update group membership in Active Directory
Here is a PowerShell V1.0 script to update group membership or add users to a group in Active Directory. You can get a I have another script which uses PowerShell V2.0 and Active Directory PowerShell module to update the group membership. You can read more details here - Add Users to a Group–PowerShell Script - http://portal.sivarajan.com/2011/07/add-users-to-grouppowershell-script.html
Script:
Input File – Input file contains user samaccountname in the following format:
1 comments:
SANTHOSH, Thanks for this script. Saved my lots of time. How would I loop through all the groups in a specific OU instead of just the one that this script calls out?
Post a Comment