Power Shell Bulk User Creation

Опубликовано: 06 Сентябрь 2016
на канале: PowerShellNerd
731
4

In this video I will show you how to create bulk users in Active Directory using Power Shell.

🔔 Subscribe to become a PowerShell Pro! https://www.youtube.com/@matthewdaugh...

Note: In previous videos I have been told when the code is copied from the description some people get weird errors.
--------------------------------------------------------------------------------------------------------
$csv = "C:\Users\Administrator\Documents\PowerShell\inputfiles\tstusers.csv"
$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)"
New-ADUser -Name $user.name `
-AccountPassword (ConvertTo-SecureString "P@$$w0rd" -AsPlainText -Force) `
-Enabled:$true `
-Path $ou `
-Description $description
}


Смотрите видео Power Shell Bulk User Creation онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь PowerShellNerd 06 Сентябрь 2016, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 731 раз и оно понравилось 4 людям.