Home Creating Lab Server WorkStation
Post
Cancel

Creating Lab Server WorkStation

Setting up Domain Controller (DC)

Preqrequisite :

Windows server 2022 :- Download

Setting up DNS :

DNS (Domain Name System) is perhaps one of the most important services for Active Directory. DNS provides name resolution services for Active Directory, resolving hostnames, URLs and Fully Qualified Domain Names (FQDN) into IP addresses without this you can’t install or promote a server to a domain controller . As it relies heavily on DNS

  • So first we will open up our network adapter settings in control panel

Image title

  • Next will go to its properties and setup IPv4 with our DNS server address :

Image title

Image title

Image title

Thats all we have to do to setup DNS on our Windows Server 2022.


Changing Machine Name

  • Settings → System → About → Rename this PC

Image title

  • We named it vDC-01 :
1
2
3
v - Virtual
DC - Domain Controller
01 - First Domain Controller

Installing Active Directory

  • First we will go to Manage → Add Roles and Features

Image title

  • Now just follow the steps which i have provided below

Image title

Image title

Image title

Image title

  • Click on Active Directory Domain Services

Image title

  • Click on DNS Server

Image title

Image title

  • Click on install and thats it we have created our AD Server

All the local users account and groups will be now shifted in active directory account so there is no more local accounts on this machine


Promoting To Domain Controller

  • Click on the Warning Yellow sign Flag icon

  • Promote this server to domain controller

Image title

  • Enter your server name

Image title

Image title

  • Type Your New password for Active Directory Server

Image title

  • Next

Image title

  • If everything went successfull in the netbios section your server name should promted out

Image title

Image title

  • Click on install

Image title

  • After Installing all the services and features

Adding Users

  • We will go to our windows start menu and go into Windows Administrative Tools and open up Active Directory Users and Computers

Image title

  • Click on Users as you can see there is also Security Groups

Image title

  • I would like to create a New OU (Organizational units) named as Groups and moved the security groups over there

  • Right Click on crt.local > New > Organizational Unit > Groups

Image title

Image title

  • Move the Security Groups to our qq Groups OU which we have created now

Image title

  • This is what your Groups OU will looked like

Image title

  • Click On Users OU > New > User

Image title

Image title

Image title

Image title

  • Click on the User properties which u have created and click on Member Of as you can see we have successfully created Domain user

Image title

  • Now we will create Domain Admin for our domain Click on Administrator > Copy > Create User

Image title

Image title

Image title

  • Click on the users properties as you can see our User is now member of Domain Admin

Image title


Setting Up Client / Workstation

Prerequisites

Windows 10 Enterprise : Download


Connecting our CLIENT01 to DC01

  • First lets open up network adapter properties and change the ipv4 settings like we did earlier to use DC01 dns address : 192.168.1.109

Image title

Image title

Image title

Image title

  • Now START -> View advance system settings > Computer name > Change > Member of Domain > type your name domain

Image title

Image title

  • We will use Administrator account to connect this machine to our domain server as the Administrator have the privilige join the domain server to any machine under the network

Image title

Image title

  • After Restarting our CLIENT01 we can login as fcastle ( Frank Castle) on this machine which is our domain user

Image title

Image title

Image title

⇒ Going back to our v-DC01 and opening up Active Directory Users and Computers settings and we see that our CLIENT01 machine was sucessfully connected to domain.

⇒ The lab is now ready and you can practise any attacks you want.

This post is licensed under CC BY 4.0 by the author.