Skip to content

JamesSo1/ActiveDirectoryLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Active Directory Lab

Table of Contents

Objective

The purpose of this lab is to create a virtual environment on a local Windows machine to simulate a domain network.
This network will utilize Windows Active Directory and will consist of a Domain Controller and client machines.

Hardware Requirements

  • Windows machine with virtualization enabled (Recommended: 16 GB+ RAM and 60 GB+ disk space)

Software Requirements

Program Walk-through

Part 1: Creating the Domain Controller Virtual Machine

  1. Open VirtualBox.
  2. Click New.
  3. Name the new virtual machine whatever you like. For this lab, the name DC is used.
  4. Select the Windows Server 2019 ISO file for the virtual machine's ISO image and check Unattended Installation.

DC Config 1

  1. Click Next.
  2. Allocate at least 4 GB (4000 MB) for Base Memory and at least 2 CPUs for Processors.
    Note: Do not choose a value in the red zone.

DC Config 2

  1. Click Next.
  2. Select Create a Virtual Hard Disk Now and choose a disk size of at least 50 GB.

DC Config 3

  1. Click Next.
  2. Confirm all details of the new virtual machine are correct, then click Finish.

Part 2: Configuring the Domain Controller Virtual Machine

  1. In VirtualBox Manager, right-click your Domain Controller virtual machine and select Settings.

DC Config 4

  1. From the left-hand menu, select System.
  2. Under Boot Order, uncheck Floppy and ensure Optical and Hard Disk are checked. This makes the VM boot faster and avoids unnecessary errors.

DC Config 5

  1. From the left-hand menu, select Network.
  2. Configure Adapter 1 to be attached to Bridged Adapter. This allows the Domain Controller to communicate with client machines on the same network.

DC Config 6

  1. Click OK to save the settings and close the window.

Part 3: Installing Windows Server 2019 onto the Domain Controller Virtual Machine

  1. Start your Domain Controller virtual machine and wait until you see a window labeled Windows Setup.

DC Config 7

  1. Click Next.
  2. Click Install Now.
  3. From the list of available operating systems, click Windows Server 2019 Datacenter Evaluation (Desktop Experience).
  4. Click Next.
  5. Carefully read the license terms, then click Next to accept.
  6. Click Next.
  7. Select Custom: Install Windows only (advanced).
  8. Select the drive you allocated for this virtual machine.

DC Config 8

  1. Click Next.
  2. Wait for Windows to install and the machine to automatically restart.
  3. When prompted, enter a password for the Administrator account and re-enter it to confirm.

DC Config 9

  1. Click Finish.
  2. Wait until the lock screen appears.

DC Config 10

Part 4: Logging into and Renaming the Domain Controller Virtual Machine

  1. To reach the login page from the lock screen, click Input on the top bar of the virtual machine's window.
  2. Hover over the Keyboard option in the menu.
  3. Click Insert Ctrl+Alt+Delete.

DC Config 11

  1. Enter the correct password for the Administrator account.
  2. Right-click on the Windows icon located on the bottom left.
  3. Click System.
  4. Scroll down in the "About" section and click the button labeled Rename This PC.
  5. Enter a name for your Domain Controller machine. In this lab, the name DC is used.
  6. Click Next.
  7. Restart the virtual machine.

Part 5: Creating the Help Desk Virtual Machine

  1. Open VirtualBox.
  2. Click on New.
  3. Name the new virtual machine whatever you like. For this lab, the name HelpDesk is used.
  4. Select the Windows 10 Enterprise ISO file for the virtual machine's ISO image and check the Unattended Installation option.

HelpDesk Config 1

  1. Click Next.
  2. Allocate at least 4 GB (4000 MB) for Base Memory and at least 2 CPUs for Processors.
    Note: Do not choose a value in the red zone.

HelpDesk Config 2

  1. Click Next.
  2. Select Create a Virtual Hard Disk Now and choose a disk size. A size of around 50 GB is recommended, but smaller (e.g., 35 GB) may also work if system resources are limited.

HelpDesk Config 3

  1. Click Next.
  2. Confirm all details of the new virtual machine are correct, then click Finish.

Part 6: Configuring the Help Desk Virtual Machine

  1. In VirtualBox Manager, right-click your help desk virtual machine and select Settings.

HelpDesk Config 4

  1. From the left-hand menu, select System.
  2. Under Boot Order, uncheck Floppy and ensure Optical and Hard Disk are checked. This makes the VM boot faster and avoids unnecessary errors.

HelpDesk Config 5

  1. From the left-hand menu, select Network.
  2. Configure Adapter 1 to be attached to Bridged Adapter. This allows the Domain Controller to communicate with client machines on the same network.

HelpDesk Config 6

  1. Click OK.

Part 7: Installing Windows 10 Enterprise onto the Help Desk Machine

  1. Start your help desk virtual machine and wait until you see a window labeled Windows Setup.

Client Config 2

  1. Click Next.
  2. Click Install Now.
  3. Accept the license terms after reading them.
  4. Click Next.
  5. Select Custom: Install Windows only (advanced).
  6. Select the drive you allocated for this virtual machine.

Client Config 8

  1. Click Next.
  2. Wait for the installation to complete and for the machine to automatically restart.
  3. When prompted for your region, select the correct region.
  4. Click Yes.
  5. Select the correct keyboard layout.
  6. Click Yes.
  7. Skip the option for a second keyboard layout unless needed.
  8. When asked to sign in with Microsoft, click Domain join instead.
  9. Enter a name for the user using this PC. In this lab, the name admin is used.
  10. Click Next.
  11. Enter a valid password.
  12. Click Next.
  13. Re-enter the password.
  14. Click Next.
  15. For the 3 security questions, select a question, provide a text-based answer, and click Next until all three questions are completed.
  16. Configure your preferred privacy settings.
  17. Click Accept.
  18. When prompted to set up Cortana, select Not Now unless needed.
  19. Wait until you are logged in.

Part 8: Logging into and Configuring the Help Desk Machine

  1. Right-click the Windows icon located at the bottom left.
  2. Click System.
  3. Scroll down in the About section and click the button labeled Rename This PC.
  4. Enter a name for your client machine. In this lab, the name HelpDesk was used.
  5. Click Next.
  6. Restart the machine to apply changes.

Part 9: Adding Active Directory to the Domain Controller Machine

  1. Launch your Domain Controller virtual machine from the VirtualBox Manager.
  2. Log in to your Domain Controller virtual machine.
  3. Left-click the Windows icon located at the bottom left of the screen.
  4. Select Server Manager from the menu.

AD_Config_1

  1. In Server Manager, click Manage at the top of the window.

AD_Config_2

  1. From the menu that appears, click Add Roles and Features.
  2. Click Next until you reach Server Roles.
  3. Under Roles, select Active Directory Domain Services.
  4. Click Add Features.
  5. Click Next until you reach Confirmation.
  6. Click Install and wait for the installation to complete.
  7. Click Promote this server to a domain controller.

AD_Config_3

  1. For Deployment Configuration, select Add a new forest.
  2. Enter a root domain name. Common endings include ".local", ".com", ".org", and ".net". In this lab, "james.org" is used.

AD_Config_4

  1. Click Next.

  2. Enter a password for Directory Services Restore Mode (DSRM).

  3. Click Next until reaching the Additional Options section.

  4. For the NetBIOS name, the wizard will suggest a default based on the root domain name.

    • Example: default NetBIOS name is JAMES.

    If providing a custom NetBIOS name, follow these rules:

    • Maximum of 15 characters
    • No spaces or special characters
    • Use uppercase letters
  5. Click Next until reaching the Prerequisites Check section.

  6. Click Install and wait for the Domain Controller VM to finish restarting.

Part 10: Creating a Help Desk Account in Active Directory

  1. Launch your Domain Controller virtual machine from the VirtualBox Manager.
  2. Open Server Manager.
  3. Click Tools.
  4. From the dropdown menu, click Active Directory Users and Computers.

Helpdesk_Config_1

  1. In the left-hand column, double-click your root domain name. This will expand to show more folders, including Users.

Helpdesk_Config_2

  1. Click the Users folder.
  2. On the top bar, click the icon to add a new user.

Helpdesk_Config_3

  1. In the new window, enter the details for the helpdesk user: first name, last name, and a User logon name. In this lab, Help and Desk were used for the name, and the logon name was set to helpdesk.
  2. Click Next.
  3. Uncheck User must change password at next logon.
  4. Enter and confirm a valid password.
  5. Click Next.
  6. Click Finish. The new user should now appear in the list of users.

Helpdesk_Config_4

  1. Double-click the newly created helpdesk user to open its properties.
  2. Click the Member Of tab at the top of the properties window.

Helpdesk_Config_5

  1. Click Add to open the Select Groups window.
  2. In the Select Groups window, type domain admins in the text box at the bottom.

Helpdesk_Config_6

  1. Click OK. "Domain Admins" should now appear under the Member Of list.

Helpdesk_Config_7

  1. Click OK to close the properties window.
  2. Press Windows + R to open the Run dialog.
  3. Type cmd and click OK.
  4. In the Command Prompt, type ipconfig /all and press Enter.
  5. Note the IP Address listed as IPv4 Address. This will be needed in the next section.

Part 11: Adding the Help Desk Machine to the Domain

  1. Launch your Help Desk virtual machine from the VirtualBox Manager.
  2. Log into the machine.
  3. Right-click the network icon located on the right side of the bottom taskbar.

Helpdesk_Config_11

  1. Click Open Network & Internet settings.
  2. Scroll down under the Status section and click Change adapter options.

Helpdesk_Config_12

  1. Right-click Ethernet.
  2. Click Properties.
  3. Double-click Internet Protocol Version 4 (TCP/IPv4) to open its properties window.

Helpdesk_Config_13

  1. In the properties window, select Use the following DNS server addresses.

Helpdesk_Config_14

  1. For Preferred DNS Server, enter the IPv4 address obtained in the previous section.
  2. Click OK.
  3. Right-click the Windows icon on the bottom bar and select System.

Helpdesk_Config_8

  1. Scroll down in the About section and click Advanced System Settings.

Helpdesk_Config_9

  1. In the System Properties window, click the Computer Name tab.
  2. Click Change.

Helpdesk_Config_10

  1. Under Member of, select Domain.
  2. Enter your root domain name.

Helpdesk_Config_15

  1. Click OK.
  2. When prompted, enter the credentials for the help desk account created in Active Directory.
  3. Click OK.
  4. Restart the machine to apply the changes.

Part 12: Logging into the Help Desk Virtual Machine

  1. Launch your Help Desk virtual machine from the VirtualBox Manager.

  2. When prompted to log in, click Other User.

  3. You should see the NetBIOS name of your domain appear in the sign-in prompt.
    Enter the credentials for the help desk account you created in Active Directory.

    Note: Do not use your local machine credentials for this step.

Helpdesk_Config_16

Part 13: Creating a New Staff Virtual Machine and Active Directory Account

The process is almost identical to the steps in Part 5–12 (Help Desk machine setup):

  • Follow the same steps to create and configure a Windows 10 virtual machine.
  • In Active Directory, create a new user account (see Part 10) but do not add the account to the Domain Admins group. By default, new accounts are placed in the Domain Users group, which is sufficient for standard users.
  • Finally, join the new VM to the domain the same way you did with the Help Desk machine.

About

Active Directory lab setup on a local Windows machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published