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
- Next will go to its properties and setup IPv4 with our DNS server address :
Thats all we have to do to setup DNS on our Windows Server 2022.
Changing Machine Name
- Settings → System → About → Rename this PC
- 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
- Now just follow the steps which i have provided below
- Click on Active Directory Domain Services
- Click on DNS Server
- 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
- Enter your server name
- Type Your New password for Active Directory Server
- Next
- If everything went successfull in the netbios section your server name should promted out
- Click on install
- 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
- Click on
Users
as you can see there is alsoSecurity Groups
I would like to create a New OU (Organizational units) named as
Groups
and moved the security groups over thereRight Click on
crt.local
>New
>Organizational Unit
>Groups
- Move the
Security Groups
to our qq Groups OU which we have created now
- This is what your
Groups
OU will looked like
- Click On
Users
OU >New
>User
- Click on the User
properties
which u have created and click onMember Of
as you can see we have successfully created Domain user
- Now we will create Domain Admin for our domain Click on
Administrator
>Copy
> Create User
- Click on the users properties as you can see our User is now member of Domain Admin
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
- Now START -> View advance system settings > Computer name > Change > Member of Domain > type your name domain
- 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
- After Restarting our
CLIENT01
we can login asfcastle
( Frank Castle) on this machine which is our domain user
⇒ 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.