jcaines512 / configure-ad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Active-Directory-Set-up

Active Directory is a Microsoft directory service that runs on a Windows Server and allows administrators to manage resources, assign permissions and control access to network resources within an organization

The purpose of this project is to set up and configure an on-premises Active Directory within Azure VMs.

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.

Video Demonstration

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

Deployment config

Step 1: Set up Resources in Azure

  • Create the Domain Controller VM (Windows Server 2022) named “DC-1”
    • Take note of the Resource Group and Virtual Network (Vnet) that get created at this time
  • Set Domain Controller’s NIC Private IP address to be static
  • Create the Client VM (Windows 10) named “Client-1”. Use the same Resource Group and Vnet that was created in Step 1.a
  • Ensure that both VMs are in the same Vnet (you can check the topology with Network Watcher



NIC to Static

Step 2. Ensure Connectivity between the client and Domain Controller

  • Log in to the Domain Controller and enable ICMPv4 in on the local windows Firewall
    • Login to the Domain Controller in the Remote Desktop
    • Open Windows Defender Firewall
    • Select "Advanced Settings" on Left
    • Select "Inbound Rules"
    • Sort by "Protocol"
    • Enable ICMPv4 rules
  • Log in to Client-1 with Remote Desktop and ping DC-1’s private IP address with ping -t (perpetual ping) to verify connectivity



Install Active Directory

Step 3. Install Active Directory

  • Login to DC-1 through Remote Desktop
  • Install Active Directory Domain Services:
    • In the Server Manager, Select "Add Roles and Features"
    • Continue- Select Next, Next, Next,
    • Select "Active Directory Domain Services"
    • "Add Features"; "Next"; "Next"; "Next"; "Install"; "Close"



setupmydomain

Step 4. Set Up Active Directory

  • Click "notification" to Select: "Promote this server to a Domain Controller"
  • Select: "Add a new forest" (mydomain.com or your choice)
  • Choose a Password and make note of this
  • Complete Installation ("Next"; "Next"; "Next"; "Next" and "Install")
  • Allow the server to close, which will disconnect the Remote Desktop.
  • Restart and then log back into DC-1 as user: mydomain.com\labuser



AD

Step 5. Create Admin and Normal User Accounts in AD

  • Navigate to Active Directory Users and Computers (ADUC)
  • Create and take note of names and passwords:
    • an Organizational Unit (OU) called “_EMPLOYEES”
    • a new OU named “_ADMINS”
    • a new employee named “Jane Doe” with the username of “jane_admin” (For practice purposes, select "Password never expires")



admin

Step 6. Add jane_admin to the “Domain Admins” Security Group

  • Select the _ADMIN Jane Doe and right click to Select Properties
  • Select "Member Of"
  • Add Domain Users: "Domain"
  • Select "Check Names" to open name options
  • Select "Domain Admins"
  • Complete by Selecting "Ok"; "Ok"; "Apply"; "Ok"
  • Log out and close the Remote Desktop connection to DC-1
  • Log back in as mydomain\jane_admin



Client-1 to Domainclient-1cont

Step 7. Join Client-1 to your domain (mydomain.com)

  • From the Azure Portal, set Client-1’s DNS settings to the DC’s Private IP address
    • In Azure, Locate DC's Private IP address in the VM DC's Overview
    • Open the VM Client-1
    • Select "Networking"
    • Select the "Network Interface" link
    • Select "DNS Servers" in the Left Column
    • Choose "Custom" DNS Servers
    • Enter the DC's Private IP address as the DNS Server
    • From the Azure Portal, restart Client-1
  • Login to Client-1 (Remote Desktop) as the original local admin (labuser) and join it to the domain (computer will restart)
    • Log into Client-1 (Remote Desktop) as original local admin (labuser)
    • Right Click Start menu
    • Select "System"
    • Select "Rename this PC (advanced)"
    • Select "Change"
    • In "Domain" box type: mydomain.com
    • Select "OK"
    • In Computer Name/Domain Changes box: -"mydomain.com\jane_admin" and password
    • Select "OK" and restart when prompted
  • Login to the Domain Controller (Remote Desktop)
  • Navigate to Active Directory Users and Computers (ADUC)
  • Verify Client-1 shows up inside “Computers” container on the root of the domain



Set up Non-Admin Users

Step 8. Setup Remote Desktop for non-administrative users on Client-1

  • Log into Client-1 as mydomain.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 (Andother option is to do this with Group Policy, which allows you to change many systems at once)



Create Random Users

Step 9. Create random additional users

  • Within DC-1 Remote Desktop
  • Open PowerShell ISE by right clicking to "Run as Administrator"
  • Open new file
  • Paste the contents of this script file into it (randomly creating new users with "Password1" as their passwords for testing purposes)
  • Open Active Directory and _EMPLOYEES to see the list of random users being added



Random namesTest login

10. Test by choosing random name and accounts

  • Choose a random name, take note of account info
  • Log off of Client-1
  • Log into Client-1, using new account name to test access



Unlock AccountReset Password

11. Fixing Common Password Issues

  • Log into DC-1
  • Navigate to: _EMPLOYEES
  • Choose Name and Right Click to find properties
  • Select Account
  • Unlock Account when user is locked out
    • Check box to Unlock Account
  • Reset Passwords
    • Right Click Name
    • Find Drop Down Menu to "Reset Password"



About