13. Create New Active Directory Users in Bulk with Password verification

preview_player
Показать описание
Create New Active Directory Users in bulk using a CSV file. This script will prompt you for a password, then you will confirm the password. If the 2 password entries match the script will execute.

Twitter: @CyberAutomate

#PowerShell #PowerShellTraining #CyberAutomate #LearnPowerShell #PowerShellAutomation
Рекомендации по теме
Комментарии
Автор

I also get this error: ConvertTo-SecureString : Cannot bind argument to parameter 'String' because it is null.
At line:70 char:67
+ ... ccountPassword (ConvertTo-SecureString -AsPlainText $password -force ...

akassebaum
Автор

Chief!!! I got the script to work only if the passwords match, but for some reason or another when the password is blank or do no match, the messages display, but the script continues to run the account creation portion. What could I be doing wrong??

akassebaum