Tech done right – usually

Active Directory Auto-Generate Username

If you need to generate and test for an available username in Active Directory, this script will allow you to do so up to a specified maximum attempts before requiring manual input. Each loop adds a letter from the first name to the last name for the username. JWayne, JoWayne, JohWayne, JohnWayne.