I have a script to create user accounts, move them to OU's, create Home drives, etc. In all of my testing of the script I would use about 5 accounts and they are all working as expected.
Today, I used my fully tested script to create 1500 student accounts, then 900 more accounts and everything went off without a hitch. Except when I tried to log in with one of the accounts I got an error that the username or password was incorrect. So I verified I had the correct information and paid more attention whilst typing to eliminate me as the problem. I still get the error. I spot checked about 10 accounts, including the first name on the csv, and all come back with the bad username or password error.
All users are shown in my domain, enabled, grouped, ou'd, you name it, correctly. When I reset the password in Active Directory I could log in. So it seems to be password related.
I had a few duplicate names during my creation, so I used the same script pointed to a new csv with only the 4 duplicate names in it. Those all created fine with no errors as well.
The trick is, I can log in with those student accounts just fine. I am using the same script and csv with the exception of far fewer items in one of the csv's. Is there some limit to how many users can be in a single csv?
This has me baffled, and also a little worried as I may have to reset passwords for the 2400 accounts I created today before realized the problem. I really had thoroughly tested this script and created about 60 different accounts to proof my script. I never would have thought there was a limit to something like this.
Any thoughts or theories would be great to hear.