Script:
#Add Users to a Group - PowerShell Script
Import-module ActiveDirectory
Import-CSV "C:\Scripts\Users.csv" | % {
Add-ADGroupMember -Identity TestGroup1 -Member $_.UserName
}
原文地址:http://blog.51cto.com/549687/2120182
时间: 2024-11-08 13:12:52