Building on the first project that set up our simulated Active Directory environment, we now move to the next step in our tutorial series. Welcome to the "Active Directory Deployment and Configuration" project, where we explore the details of deploying and refining an Active Directory system. This project is designed to impart a fundamental understanding of Active Directory services, emphasizing key aspects such as installation, forest creation, user account administration, domain integration, and customized Remote Desktop access.
- Configure and install Active Directory services on the designated Domain Controller virtual machine.
- Establish a new Active Directory forest.
- Create and administer user accounts with administrative privileges for effective management of the Active Directory environment.
- Integrate the Client-01 virtual machine into the established domain, ensuring seamless communication with the Active Directory infrastructure.
- Configure Remote Desktop access specifically tailored for non-administrative users, enhancing user accessibility while maintaining security protocols.
- Microsoft Azure (Virtual Machines/Compute)
- Remote Desktop
- Active Directory Domain Services
- Windows Server 2022
- Windows 10 (21H2)
- In the Server Manager dashboard, click Add roles and features and continue the setup
![AD-setup](https://private-user-images.githubusercontent.com/158519921/304188410-bb534e6b-0072-420a-9f74-c03bbcc77016.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg3ODAsIm5iZiI6MTcyNDU5ODQ4MCwicGF0aCI6Ii8xNTg1MTk5MjEvMzA0MTg4NDEwLWJiNTM0ZTZiLTAwNzItNDIwYS05Zjc0LWMwM2JiY2M3NzAxNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zNzBkNzUyYmVjMjBhMzIwYmJmYTdlNzhlNDZjNjNkYjVkMWFkODJjZGU5NDY2ODY3MWU0ZWNhNTAyYTE4MTM1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.t9cDaY__Zj3FopNjpcT6k6JxFkv1uEMqcrlZ4IDqFcI)
.
.
.
Select Active Directory Domain Services and finish the installation
.
.
.
- Once the installation is done, notice the flag on the top left of the Server Manager
- Click on the flag and promote DC-01 to Domain Controller.
![notif](https://private-user-images.githubusercontent.com/158519921/304189332-3cb91456-cc00-4e70-8ea2-2b54a5dc8137.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg3ODAsIm5iZiI6MTcyNDU5ODQ4MCwicGF0aCI6Ii8xNTg1MTk5MjEvMzA0MTg5MzMyLTNjYjkxNDU2LWNjMDAtNGU3MC04ZWEyLTJiNTRhNWRjODEzNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NmRhZWE2NDI5ZDJlZWQ0NDQxNDM4MzM2NzgyNWM3M2QwN2ZkNWRhMTc5YWEwZjNiYmI0NGYxZTZlYjYyNTQxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.gvrIaP9zZpkiAQusNHJRuKdrIesOg65Nry2ImpZQXxA)
.
.
.
- We will now add a new Forest and set the Root domain name to “mydomain.com”
- Finish setup and restart DC-01
- Log back in with “your username"@mydomain.com
.
.
.
- Once DC-01 has rebooted, click on tools and select Active Directory Users and Computers
- Right click on mydomain.com and select new and click on Organizational Unit
![Users](https://private-user-images.githubusercontent.com/158519921/304190464-23db8c79-84f4-4e6d-befe-77505518cb05.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg3ODAsIm5iZiI6MTcyNDU5ODQ4MCwicGF0aCI6Ii8xNTg1MTk5MjEvMzA0MTkwNDY0LTIzZGI4Yzc5LTg0ZjQtNGU2ZC1iZWZlLTc3NTA1NTE4Y2IwNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZjc2NTU0OTZmYzA0MmJjZjU2NTU2NDBhNTViNmMzMGI3ZmFkZDk1NmQ4OGE3NzhjNmRhZWM1MzU2NzFlYjJlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.w_F8odLytFwS2UWDyJLXVTPDEV0MRrlNfUcOPUhJoRY)
.
.
.
We will be creating an OU named _EMPLOYEES and _ADMINS
![admins](https://private-user-images.githubusercontent.com/158519921/304190771-d64f8f3b-130b-4156-bc08-b16f7b21fc89.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg3ODAsIm5iZiI6MTcyNDU5ODQ4MCwicGF0aCI6Ii8xNTg1MTk5MjEvMzA0MTkwNzcxLWQ2NGY4ZjNiLTEzMGItNDE1Ni1iYzA4LWIxNmY3YjIxZmM4OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMzE0MjUzNjE3NDMzZmEzYzQ3MTBlYzIyMTgxYmRjZGZjYjgyMWViMTU5YTU0NjIxODQyNjZlYjhlYTNlMjVlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.TwDhC4ZA0wyAXshAtFGgGx3kHZ5mv2nNmbsnHqMf6fo)
.
.
Right click on Users and create a new user named Jane Doe with the username jane_admin
![jane doe](https://private-user-images.githubusercontent.com/158519921/304190935-5d8f782a-145a-404b-bc83-7a6721b3728d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg3ODAsIm5iZiI6MTcyNDU5ODQ4MCwicGF0aCI6Ii8xNTg1MTk5MjEvMzA0MTkwOTM1LTVkOGY3ODJhLTE0NWEtNDA0Yi1iYzgzLTdhNjcyMWIzNzI4ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xM2Q5YmQxNmZjYzhmZDU5NTIzNDNhYzgyMGViMGM1NTRjZDczMjZmMzhjYjM4YzViNzU3ZmFlYWRmODQ1MzMxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.PNTzB1DEjdinxiON-557XRdamWYThljcwWRccZ5wSgg)
.
.
.
Now we will turn Jane Doe into an admin by right clicking her name and adding her to the “Domain Admins” Security Group
![add to group](https://private-user-images.githubusercontent.com/158519921/304192151-08175b12-7a59-4030-b5ef-6ef1983ac6e7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg3ODAsIm5iZiI6MTcyNDU5ODQ4MCwicGF0aCI6Ii8xNTg1MTk5MjEvMzA0MTkyMTUxLTA4MTc1YjEyLTdhNTktNDAzMC1iNWVmLTZlZjE5ODNhYzZlNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMWRiNzdiYTQzYjU4ZDEwNDg3YmQzMDZjMDc5ZjNjODBiNjUxMTQ3N2RhYTBkNzFiM2JiODMxYWQ0NDllOGVjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.3A1lqauB6h5AkdVDflqrpJmykPjQQoq6p3b4C5fyfkE)
.
.
.
Logout of DC-01 and log back in with Jane Doe’s credentials
![jane login](https://private-user-images.githubusercontent.com/158519921/304192669-751f9854-2aa5-4f94-b641-b355e77a2a32.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg3ODAsIm5iZiI6MTcyNDU5ODQ4MCwicGF0aCI6Ii8xNTg1MTk5MjEvMzA0MTkyNjY5LTc1MWY5ODU0LTJhYTUtNGY5NC1iNjQxLWIzNTVlNzdhMmEzMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02NWMwNjUzYjJjZDYyMWY0YzkzZDJhOGQ2M2NjZTAwYTUxMmNlNWUxYjRhNjFjYmMwNGFmMTQ4OWZjMGU5N2U2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.eEntKpf4o5Udk5yT7-shUIuadgSLHp8v7HK3zMWxk9k)
.
.
.
For Client-01 to join the domain, we first have to set it’s DNS server as DC-01’s private address.
- In the Azure Portal, select Client-01 -> Networking -> Network interface and click on DNS servers
![dns servers](https://private-user-images.githubusercontent.com/158519921/304193131-13292c41-67f1-4212-95c4-084ac2ec0751.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg3ODAsIm5iZiI6MTcyNDU5ODQ4MCwicGF0aCI6Ii8xNTg1MTk5MjEvMzA0MTkzMTMxLTEzMjkyYzQxLTY3ZjEtNDIxMi05NWM0LTA4NGFjMmVjMDc1MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNzZmYTNiNTRjODM0MjAxY2I1MzVhYmU0OTRmNGNlZTBkOGE3NDY0NjNiODY4Yzg2YWEyNzRlMjU5YzlmZDY5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.uReYS5K0u3YM5ivZ7wK-tIYxEGeb5Blz-hnB32aRCFM)
.
.
.
Select a custom DNS server and type in the private ip address of DC-01 and restart Client-01
![dns servers2](https://private-user-images.githubusercontent.com/158519921/304193553-d7ec7764-9fcd-4d46-8962-f536bcb1007d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg3ODAsIm5iZiI6MTcyNDU5ODQ4MCwicGF0aCI6Ii8xNTg1MTk5MjEvMzA0MTkzNTUzLWQ3ZWM3NzY0LTlmY2QtNGQ0Ni04OTYyLWY1MzZiY2IxMDA3ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMGMyYzkxYzdkYjcxZDY5YjM0YzQwYzNkMjQ4NWEwNDhkNjg0MjhiNDc1YzRiNjdjOTM4NTUyZmU0YTBmNTA4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ghCyKQwzoxvIPzK8WIPmhq3IuOELggsIoQxB-PgO9ss)
.
.
.
Now log back in to Client-01 using your original admin credentials. Click start and go to Settings > Rename this PC (advanced) > Change and add “mydomain.com” and login with the admin credentials previously created (jane_admin)
![remote desktop first login](https://private-user-images.githubusercontent.com/158519921/304194824-97df566d-84c9-40d2-88b1-769f79af10a6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg3ODAsIm5iZiI6MTcyNDU5ODQ4MCwicGF0aCI6Ii8xNTg1MTk5MjEvMzA0MTk0ODI0LTk3ZGY1NjZkLTg0YzktNDBkMi04OGIxLTc2OWY3OWFmMTBhNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMDY4OTdhNDFhM2YyYWM2ZWJmMTg3ZTY1YTU4MmE3ZjRmMDllYTc0NTkwNGQ2OGExZDVlZDliODk5YmRhN2UzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.BX2dOnU5mp5kvTf92OgnHO4B8jCdFvL1fH9_vlSWSag)
Once Client-01 has been added, the VM will restart.
.
.
.
- Log back into Client-01 using jane_admin and open Settings > Remote Desktop> User Accounts and click “Select users that can remotely access this PC”
- Add Domain Users
![domain users](https://private-user-images.githubusercontent.com/158519921/304197238-04eaffe2-1fa3-4c4c-a327-8ea5b63e2c24.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1OTg3ODAsIm5iZiI6MTcyNDU5ODQ4MCwicGF0aCI6Ii8xNTg1MTk5MjEvMzA0MTk3MjM4LTA0ZWFmZmUyLTFmYTMtNGM0Yy1hMzI3LThlYTViNjNlMmMyNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNVQxNTA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMTA1ZjQyZGIyNWQ2NjRiOWZiZjE3NWNmYWQ5ODc1NmExMWViNGVmYTAwMWViNzY5NDBkYzQ2ZGE0YWQyMzI2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.5pxx-gdhFZELb9s9Fu3vG2CJRazW1gSFft_Q6pMTNIE)
This will allow normal users to login to Client-01
.
.
.
We've successfully concluded the Active Directory Deployment and Configuration phase. Through configuring Active Directory on the Domain Controller, we established our infrastructure by creating a forest, administrator account, and ultimately integrating Client-01 into the domain. In the upcoming project, we'll be generating users and simulating various Active Directory scenarios.