ekow-lloyd / Newcompany

0 stars 0 forks source link

'Collision' rules #2

Closed cesquib closed 5 years ago

cesquib commented 5 years ago

Think about 'collision rules' when modifying and/or creating new users. If you already have a John Doe user working for XYZCorp in AD and then a new user with that same name of John Doe starts at XYZCorp your script will fail because previous user is taken. You can either put logic in your script to detect this and put in 'collision rules' (e.g. if John Doe exists 3 times and #4 is hired add a 4 to the end of their name). Another option is you can just rely on your output file notifying you of this issue and you can manually add the user using standard tools (Active Diretory Users and Computers snap-in).

ekow-lloyd commented 5 years ago

I think for now i'll rely on manually doing that part because there's something about Dutch names, they almost always have a " Van" or "de" as part of the last name, and the white spaces might be a problem