- How to set up a virtual machine for Windows Server
- Basic Windows Server installation
- Setting up Active Directory (AD) - the heart of Windows networking
- Creating your first domain
Before we begin, make sure you have:
- A computer with at least 8GB RAM and 100GB free disk space
- One of these virtualization programs installed:
- VMware Workstation Player (Free)
- VirtualBox (Free)
- Hyper-V (Free with Windows Pro)
- Windows Server ISO file (2019 or 2022 recommended)
- You can download a trial version from Microsoft's website
Think of a virtual machine (VM) as a computer within your computer. Here's how to create one:
- Open your virtualization program (we'll use VirtualBox as an example)
- Click "New" or "Create Virtual Machine"
- Set these recommended settings:
- Name:
DC1(DC stands for Domain Controller) - Type: Microsoft Windows
- Version: Windows Server 2019 (64-bit)
- Memory: 4096 MB (4GB)
- Hard disk: 60 GB
- Processors: 2
- Name:
-
Start your new VM
-
When prompted, select your Windows Server ISO file
-
Follow these installation steps:
Language: English Time format: Your local time Keyboard: Your local keyboard -
Click "Install Now"
-
Choose "Windows Server 2019 Standard (Desktop Experience)"
- Desktop Experience gives you a graphical interface like regular Windows
-
After installation, press
Windows + Xand select "Network Connections" -
Right-click your network adapter and select "Properties"
-
Select "Internet Protocol Version 4 (TCP/IPv4)" and click "Properties"
-
Enter these settings (adjust if your network is different):
IP Address: 192.168.1.100 Subnet Mask: 255.255.255.0 Default Gateway: 192.168.1.1 DNS Server: 192.168.1.100 (same as IP address)
Active Directory is like a phone book for your network - it keeps track of all users, computers, and settings.
- Open "Server Manager" (it opens automatically after installation)
- Click "Add roles and features"
- Click "Next" until you reach "Server Roles"
- Check "Active Directory Domain Services"
- Click "Add Features" when prompted
- Click "Next" through the wizard
- Click "Install"
- Wait for installation to complete
- Click "Promote this server to a domain controller"
- In the "Active Directory Domain Services Configuration Wizard":
- Select "Add a new forest"
- Enter your domain name:
lab.local - Click "Next"
- Set a Directory Services Restore Mode (DSRM) password:
- This is like a master key for your domain
- Use a strong password and write it down
- Example:
P@ssw0rd123!
- Click "Next" through the remaining steps
- Click "Install"
- The server will restart automatically
- After restart, log in with your domain credentials
- Press
Windows + R, typedsa.msc, and press Enter- This opens Active Directory Users and Computers
- You should see your domain (
lab.local) with these folders:- Builtin
- Computers
- Domain Controllers
- Users
You've just set up your first Windows Server domain! This is the foundation for:
- Managing users and computers
- Setting up security policies
- Creating shared resources
- And much more!
- Learn how to create users and computers in 02_Manage_Users_Computers_AD.md
- Understand how to manage groups in 03_AD_Groups_Management.md
- Learn about Group Policy in 04_GPO_Creation_and_Linking.md
-
Can't connect to the internet?
- Check your network adapter settings
- Make sure your IP settings are correct
-
Installation fails?
- Make sure you have enough disk space
- Verify your ISO file isn't corrupted
-
Can't promote to domain controller?
- Check if you have a static IP address
- Make sure DNS is pointing to your server's IP
Need help? Check out 05_Troubleshooting.md for more detailed solutions!