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:
![[image%255B3%255D.png]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA0r1n8sdY44gB3U20rlPa4fjjdxUH8WAvyqZp21VyM0YEkuDYvpHk45I3HFeHCjJhSz3L-TD4NXTsHY6gqnJY-LEt0l6c1Td05y3jFMh_fWgIx3MT1Pfr6qObImxHekP3hrN29sUVx4c/s1600/image%25255B3%25255D.png)










2 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?
Thanks to the author for writing the post, it was quite necessary for me and liked it. I wrote a note on the assignment desk review about this. I will be happy if you read it and accept it. Thank you for your concern.
Post a Comment