A PowerShell automation example demonstrating automated user creation in Active Directory with department-based organization.
- Automated username generation (first initial + last name)
- Department-based OU placement
- Secure random password generation
- Configurable base OU through
config.json
- Dynamic domain detection
- Ensure you have Active Directory PowerShell module installed
- Set your base OU in
config.json
- Run:
.\Onboarding.ps1
The script will interactively prompt for user details and create the AD account with appropriate settings.