PC_Aide

4_add_adGroupMember.ps1

Jan 6th, 2017
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # www.sivarajan.com
  3. # Add User to a Group - PowerShell Script
  4. #
  5. Import-module ActiveDirectory
  6. Import-CSV ".\4_list_userName.csv" | % {
  7. Add-ADGroupMember -Identity $_.sAMAccountName -Members $_.UserName
  8. }
Advertisement
Add Comment
Please, Sign In to add comment