If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.
"Error action is " + $errorAction
& .\Test.ps1 -errorAction ignore
Error action is
Join the community of 500,000 technology professionals and ask your questions.