1. 程式人生 > >Add Users to a Group using PowerShell Script

Add Users to a Group using PowerShell Script

AD

Script:

#Add Users to a Group - PowerShell Script

Import-module ActiveDirectory 
Import-CSV "C:\Scripts\Users.csv" | % { 
Add-ADGroupMember -Identity TestGroup1 -Member $_.UserName 
}

Add Users to a Group using PowerShell Script