Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
--> Important: In the CSV are passwords defined.
$csv = Import-Csv -Delimiter ";" -Path "C:\import.csv" $csv | New-ADUser -Enabled $true -ChangePasswordAtLogon $true -AccountPassword (ConvertTo-SecureString $csv.AccountPassword -AsPlainText -Force)
ConvertTo-SecureString : The argument can not be bound to the parameter "string" because it is NULL.When I delete the column "AccountPassword" it's also working with multiple entities.
Join the community of 500,000 technology professionals and ask your questions.