This Video show on how to Performing BulkUser File Operation with Windows Server 2016 Powershell
Copy the script
import-csv -path d:\bulkuser\Userlist.csv | foreach {
$givenName = $_.name.split()[0]
$surname = $_.name.split()[1]
new-aduser -name $_.name -enabled $true –givenName $givenName –surname $surname -accountpassword (convertto-securestring $_.password -asplaintext -force) -changepasswordatlogon $true -samaccountname $_.samaccountname –userprincipalname ($_.samaccountname+”@win.osi.local”) -city $_.city -department $_.department
}
Ещё видео!