Thanks to visit codestin.com
Credit goes to github.com

Skip to content

avyaktrout/configure-ad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Microsoft Active Directory Logo

On-premises Active Directory Deployed in the Cloud (Azure)

This tutorial outlines the implementation of on-premises Active Directory within Azure Virtual Machines.

Environments and Technologies Used

  • Microsoft Azure (Virtual Machines/Compute)
  • Remote Desktop
  • Active Directory Domain Services
  • PowerShell

Operating Systems Used

  • Windows Server 2022
  • Windows 10 (21H2)

Deployment and Configuration Steps

Create the Domain Controller VM (Windows Server 2022) named DC-1.

Disk Sanitization Steps


Create the Client VM (Windows 10) named Client-1. Use the same Resource Group and Vnet that was created in the previous step.

Disk Sanitization Steps


Set Domain Controller's NIC Private IP address to be static.

Disk Sanitization Steps


Ensure that both VMs are in the same Vnet. You can check the topology with Network Watcher.

Disk Sanitization Steps


Login to Client-1 with Remote Desktop and ping DC-1's private IP address with ping -t which is a perpetual ping.

Disk Sanitization Steps


Login to the Domain Controller and enable ICMPv4 in on the local windows firewall.

Disk Sanitization Steps

Disk Sanitization Steps


Check back at Client-1 to see if the ping succeeded.

Disk Sanitization Steps


Login to DC-1 and install Active Directory Domain Services.

Disk Sanitization Steps


Promote as a Domain Controller.

Disk Sanitization Steps


Setup a new forest as anything that you can remember. I did avyaktrout.com.

Disk Sanitization Steps


Restart and then log back into DC-1 as user.

Disk Sanitization Steps


In Active Directory Users and Computers, create an Organizational Unit called _EMPLOYEES and another one called _ADMINS.

Disk Sanitization Steps

Disk Sanitization Steps


Create a new employee named "Jane Doe" with the username of "jane_admin".

Disk Sanitization Steps


Add jane_admin to the Domain Admins Security Group.

Disk Sanitization Steps


Log out/close the Remote Desktop connection to DC-1 and log back in as “avyaktrout.com\jane_admin”. Use jane_admin as your admin account from now on.

Disk Sanitization Steps


From the Azure Portal, set Client-1's DNS settings to the DC's Private IP address.

Disk Sanitization Steps


From the Azure Portal restart Client-1. Login to Client-1 as the original local admin (labuser) and join it to the domain. The computer will restart.

Disk Sanitization Steps


Login to the Domain Controller and verify Client-1 shows up in Active Directory Users and Computers inside the "Computers" container on the root of the domain. Create a new Organizational Unit named _CLIENTS and drag Client-1 into there.

Disk Sanitization Steps


Log into Client-1 as avyaktrout.com\jane_admin and open system properties. Click Remote Desktop. Allow "domain users" access to remote desktop. You can now log into Client-1 as a normal, non-administrative user now. Normally you'd want to do this with Group Policy that allows you to change MANY systems at once (maybe a future lab).

Disk Sanitization Steps


Login to DC-1 as jane_admin. Open PowerShell_ise as an administrator. Create a new File and paste the contents of this script (https://github.com/joshmadakor1/AD_PS/blob/master/Generate-Names-Create-Users.ps1) into it.

Disk Sanitization Steps


Run the script and observe the account being created.

Disk Sanitization Steps


When finished, open Active Directory Users and Computers and observe the accounts in the appropriate OU and attempt to log into Client-1 with one of the accounts (take note of the password in the script).

Disk Sanitization Steps

Disk Sanitization Steps

Disk Sanitization Steps


And now that we're done don't forget to clean up your Azure environment so that you don't incur unnecessary charges.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published