Skip to content

Conversation

@ecspresso
Copy link

@ecspresso ecspresso commented Mar 6, 2018

$employeeNumber was 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+1 before the continue statement.

ecspresso and others added 8 commits March 6, 2018 08:25
$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
@RobBridgeman
Copy link
Owner

$employeeNumber fix is already implemented, and Spelling fix would be gramatically incorrect.
If you can remove these two fixes, and take out your custom OU details from the script (Ideally keep the defaults from master) then ill be happy to merge.

@RobBridgeman
Copy link
Owner

Totally didnt forget about this repo. Better late than never i guess 😇

Copy link
Owner

@RobBridgeman RobBridgeman left a 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.

Copy link
Owner

@RobBridgeman RobBridgeman left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants