static-code-analysis
Static Code Analysis: An important process for finding vulnerabilities
October 19, 2021
android-webview
Learn about Android WebView and its Vulnerabilities
November 8, 2021

October 28, 2021

Hey guys, I hope you are doing well. Every Pentester is always keen on learning the Active directory. This article is about how we can set a basic Active directory in windows using VM. Hope this will be useful.

Downloading Active Directory in Windows

We have to download 2 ISO files of Windows Server and Windows 10 Enterprises.

Installing Windows Server

Open the VMWare and create a new machine by clicking on Files > Create New Virtual Machine.

Create-Virtual-Machine

Now Load the ISO file of the windows server, which we downloaded earlier.

ISO-file-windows-server

In the Next step, Select the version to Version of windows to install as Windows Server Standard Core.

Windows-Server-Standard-Core

Now give the desired amount of storage space and keep the option as Split Virtual disk into multiple files.

Split-Virtual-disk-into-multiple-files

Always disable the option Power on this Virtual machine after creation.

virtual-machine-wizard

Once the Machine is created before login, edit the machine with a couple of checks.

windows-server-2019

First, check the Network adapter is set to NAT.

Network-adapter

Second, remove the floppy drive from the server machine because it created a problem while booting up.

windows-server-Machine

Once these steps are done, we are free to load the server. Play the windows server Machine in VM.

Once it boots up, click on any key to continue the boot process.

boot-process

Once booted up, select the windows server as Windows Server 2019 Standard Evaluation (Desktop Experience).

Windows-Server-2019-Standard-Evaluation

Agree to the policies and move ahead to create the partition.

Click New to create a new partition.

active-directory-windows-setup
active-directory-windows-setup

Wait for the Server to get installed.

active-directory-windows-setup

Once the server is installed and rebooted, create the Password for the administrator. Give some Easy password. Anyways it’s a testing environment.

administrator-password

Server Management:

Once password is set, log in to the Administrator account and open the Server Manager to manage our server.

active-directory-server-manager

Before Starting any server management, we must give the domain controller a name.

Go to the search and type “View your PC name”.

Rename the computer name to the DC name.

server-management

Now we’re going to install Domain Services. Click on “Manage”, then “Add Roles and Features”.

manage-active-directory

Enable the following options in the server.

  • Active Directory certificates Services
  • Active Directory Domain services
  • DNS Server.
Active-Directory-certificates-Services

Once done, Restart your server. And We are free to use the server.

Active-Directory-certificates-Services

Once installed, Configure the domain controller by clicking on the flag symbol.

configure-domain-controller

Create a new forest and enter the domain name.

active-directory-domain-configuration

Set up the password for the created domain.

active-directory-domain-controller-options

Once installed, the Server is done with set-up. We can now create users, Organizational units, and add machines to the server.

Conclusion

Active Directory in Windows is Microsoft’s proprietary directory service. The Active Directory in windows is based on a Windows server and allows administrators to regulate permissions and access network resources.  Active directory in windows is the heart of the windows; it’s a single point of authorisation, a database and a server to allow users to get their work done on a windows environment.

Discover more from SecureLayer7 - Offensive Security, API Scanner & Attack Surface Management

Subscribe now to keep reading and get access to the full archive.

Continue reading

Enable Notifications OK No thanks