Power Shell Bulk User Creation

preview_player
Показать описание
In this video I will show you how to create bulk users in Active Directory using Power Shell.

Note: In previous videos I have been told when the code is copied from the description some people get weird errors.
--------------------------------------------------------------------------------------------------------
$ou = "OU=EntUsers,OU=users and groups,DC=Contoso,DC=com"
$date = (Get-Date -f MM-ddd-yyy)
$description = "Test account created on $date"
$users = Import-csv $csv
foreach($user in $users){
Write-Output "Creating $($user.Name)"
-AccountPassword (ConvertTo-SecureString "P@$$w0rd" -AsPlainText -Force) `
-Enabled:$true `
-Path $ou `
-Description $description
}
Рекомендации по теме
Комментарии
Автор

Wow. great PS explanation. I have taken PS course in PluralSight and Udemy, and I have to say, that I have learned more from your videos than those courses. Thanks, keep up the good work.

martineavila