Welcome to the "Active Directory User Generation" project. In this project, we'll create user accounts using a powershell script to populate our domain for future use in simulated scenarios.
- Preliminary Setup for Active Directory and Network Traffic Analysis between Azure VMs
- Active Directory Deployment and Configuration
- Create a number of users using a power shell script in order to populate our domain
- Microsoft Azure (Virtual Machines/Compute)
- Remote Desktop
- Active Directory Domain Services
- Windows Server 2022
- Windows 10 (21H2)
.
.
First we will be using a Powershell script to generate a number of users for our Active Directory Domain.
- Login to DC-01 as jane_admin
- Open PowerShell_ise as an administrator and paste the contents of the script and run it.
![POWERSHELL](https://private-user-images.githubusercontent.com/158519921/304274480-bdc4f2ad-cb4b-4509-83cf-c2c1ec8c4dfd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg4NzMsIm5iZiI6MTcyNDU5ODU3MywicGF0aCI6Ii8xNTg1MTk5MjEvMzA0Mjc0NDgwLWJkYzRmMmFkLWNiNGItNDUwOS04M2NmLWMyYzFlYzhjNGRmZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA5MzNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNDk1ZGY3MTA1MDVjOWE4MzVjNmRmMjNkZWI1MjM4OTFkODNlNmYyZTcyMmY1ZGE4MDQ4ZDlmYjk4ODY1MDM5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.yLDx_9Ud2vlDXHww1EbSdkCN8SHQfgDygJ930jjfrZE)
The script will generate a number of users with a combination of consonants and vowels so the names might be unusual.
.
.
.
Once the script is done running, you can verify in Active Directory that the users have been created.
![USERS](https://private-user-images.githubusercontent.com/158519921/304274690-07b77e8f-07a7-4048-a04b-9d623ddebfc2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg4NzMsIm5iZiI6MTcyNDU5ODU3MywicGF0aCI6Ii8xNTg1MTk5MjEvMzA0Mjc0NjkwLTA3Yjc3ZThmLTA3YTctNDA0OC1hMDRiLTlkNjIzZGRlYmZjMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA5MzNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yY2QyMmNiMDU5MDQ4NWFjMzY0NWY3YTUzMjVkMjA2NGM5ZDNmODNjMDQzZjBhM2ZkYWZmZWU1Zjk2YWJhNzdlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.sOLiaLwrkq-Ev7uPVAbF8iAMYyYHRWlglF8E4bGMYLo)
- Now you can try logging in as one of the users to further verify that the script has worked.
- Take note of the default password in the script (Password1)
![LOGIN](https://private-user-images.githubusercontent.com/158519921/304274875-2cedd731-17ff-4595-869b-0111d5bc2f6f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg4NzMsIm5iZiI6MTcyNDU5ODU3MywicGF0aCI6Ii8xNTg1MTk5MjEvMzA0Mjc0ODc1LTJjZWRkNzMxLTE3ZmYtNDU5NS04NjliLTAxMTFkNWJjMmY2Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA5MzNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNjJiYzYwM2Q0ZmQ3YTlmMDNkNDkxMzNiZGFlYTg0NzE0NmI3NmNiYTkwZjMwMThmZThhYWE2OTlhMTRlMTQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.SulXSvzW1-aN7BXpd9impvP-hfUkVQOa4hU9buQ8u2s)
In closing, the "Active Directory User Generation" project streamlines our user management process. Using a PowerShell script, we efficiently create user accounts, setting the stage for the next projects.