Create a user via the following PowerShell Script.
New-ADUser -name ‘Michael Jordan‘ -SamAccountName jordan.michael -UserPrincipalName jordan.michael@pandabusiness.local -Path "OU=Users,OU=Administration,DC=pandabusiness,DC=local" -AccountPassword (ConvertTo-SecureString -AsPlainText ‘Password123‘ -force) -Enabled $true -ChangePasswordAtLogon $true
More Information
=================
https://docs.microsoft.com/en-us/powershell/module/addsadministration/new-aduser
Active Directory - Creating users via PowerShell
原文:https://www.cnblogs.com/keepmoving1113/p/12242738.html