Active Directory Overview (Windows Server) for Interview Preparation
What is Active Directory ?
Active Directory (AD) is Microsoft's directory service used to Manage below Network objects and Resources
- Manage users
- Manage Computers
- Manage Groups
- Control access to resources
- apply security policies
We can call AD as :
A centralized brain of windows network
Without AD:
- Every computer has its own users
- Passwords aren't Shared
- Policies must be configured one-by-one.
- one login works everywhere.
- Permission are controlled centrally.
- Security is enforced automatically.
Why Active Directory Exists ?
Imagine a company having 1000 Employees:
Without AD
- 1000 local accounts per Server.
- Manual access control.
- No central security.
- Difficult to Manage.
- One user account per employee
- login from any company PC
- Central password rules
- Easy onboarding or Offboarding
- Domain
- Domain Controller (DC)
- Objects
- Organizational units (OUs)
- Security riles
- Authentication system
- Policies
- We usually have multiple DCs
- They replicate data between each other
- if one fails, other DC still work
- Users
- Computers
- Groups
- Printers
- Service accounts
- Username
- Password hash
- Group membership
- Apply Group Polices
- Delegate admin control
- Keep AD Clean
- User enters username/Password
- DC verifies credentials
- DC issues a Ticket if credentials are correct
- User uses ticket to access resources
- Secure
- Encrypted
- No password sent repeatedly
- NTLM (older, less secure) : Windows New Technology LAN Manager
- Enforce password rules
- Disable USB ports
- Set desktop wallpapers
- Install software automatically
- Lock down security settings and many more.
- Sites
- Domains
- OUs
- Local
- Site
- Domain
- OU
Active Directory Structure
Forest
A forest is the top-level container.
- Contains
one or more domains
- Shares
a common schema
- Trusts
exist automatically
Tree
A tree is a group of domains with:
- Shared
namespace
- Automatic
trust
Trusts
Trusts define how domains access each other.
Types:
- One-way
- Two-way
- Transitive
- External
AD Replication
- DCs
copy changes between each other
- Uses
multi-master replication
- Based
on sites and subnets
Key concepts:
- Intra-site
replication (fast)
- Inter-site
replication (compressed, scheduled)
FSMO Roles (Critical AD Roles)
There are 5 FSMO roles:
Forest-wide:
- Schema
Master
- Domain
Naming Master
Domain-wide:
- RID
Master
- PDC
Emulator
- Infrastructure
Master
Why they matter:
- Certain
AD tasks require these roles
- Losing
them can break AD operations
Active Directory Security
Common Attacks:
- Pass-the-Hash
- Kerberoasting
- Golden
Ticket
- DCSync
Best Practices:
- Tiered
admin model
- Least
privilege
- Secure
service accounts
- Protect
Domain Admins
- Monitor
logs regularly
AD Modern Use & Azure Integration
Today, AD often works with:
- Azure
AD / Entra ID
- Hybrid
identity
- SSO
(Single Sign-On)
- Cloud
authentication
Tools Every AD Admin Uses
- Active
Directory Users and Computers (ADUC)
- Group
Policy Management Console (GPMC)
- PowerShell
(essential)
- Event
Viewer
- ADSI
Edit (danger zone)
Common AD Mistakes
- Flat OU structure
- Too many Domain Admins
- Ignoring replication
- Weak password policies
- No documentation
Subscribe to My YouTube Channel: www.youtube.com/@Stack_Tech

Comments
Post a Comment