Every IT Admin who is responsible for User Onboarding will understand the struggle of finding a unique Login Name and UPN for new Users. Some combinations might also be offensive or embarrassing.
Depending on your Name Schema, finding unique Names for “Finn Ucker” or “Peter Immel” could result in some “fun” Usernames, depending on your Location and Language.
Here comes AI for help. I adopted my PowerShell script to check each combination and let AI decide if the Name is offensive, funny, known brand or embarrassing
Examples



Details
Inspired by a Post from David Stein on LinkedIn and the usage of the PSAI Module from Doug Finke, I adopted my existing Script on Github to use AI to ensure that no offensive, funny, known brand, or embarrassing Usernames are returned.
Please see the PSAI Documentation on how to set it up. In my example, I am using Azure OpenAI.
GitHub
Repo: Seidlm/Active-Directory
File: Find free SamAccountName and UPN.ps1
Michael Seidl aka Techguy
au2mate everything