-
Notifications
You must be signed in to change notification settings - Fork 54
Bugfixes #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Bugfixes #4
Conversation
$employeeNumber = 1 was missing.
If a user existed, $employeeNumber = $employeeNumber+1 was never reached and $sAMAccountName = $orgShortName + $employeeNumber would never change causing it to loop through all names, not adding a single one.
Changed to always +1 in the name list for when adding a much smaller amount (say 10 users) give all fake users different first names.
script's and not scripts
|
$employeeNumber fix is already implemented, and Spelling fix would be gramatically incorrect. |
|
Totally didnt forget about this repo. Better late than never i guess 😇 |
RobBridgeman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All credits to the script's original creator. = All credits to the script is original creator.
RobBridgeman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already implemented from original script. Please see Master.
$employeeNumberwas never initiated, added that.If running the script once and then running it again, the user would exist and it would continue and loop through all names without adding anything. Fixed that by adding
$employeeNumber = $employeeNumber+1before the continue statement.