Most company laptops run Windows, so most real attacks and most SOC alerts involve Windows too. A Windows VM lets you practise Windows privilege escalation, read Event Viewer logs, test how Defender reacts, and later join an Active Directory domain. Microsoft gives you Windows 11 Enterprise free for 90 days for evaluation, which is perfect for a lab.
Download the evaluation ISO
- Go to microsoft.com/evalcenter and choose Windows 11 Enterprise.
- Fill in the short registration form, then download the ISO – Enterprise file for your language (64-bit).
The evaluation is for testing and learning, not for daily use. When the 90 days run out, the desktop goes black and the PC shuts down every hour. In a lab that's fine: rebuild it, or keep a template (lesson 10).
Create the VM
- New → Name WS01, select the ISO. VirtualBox detects Windows 11 (64-bit).
- Tick Skip Unattended Installation, so you learn the real Windows installer instead of watching it happen.
- Hardware: 4096 MB RAM (8192 is smoother) and 2 CPUs (4 if you can).
- Hard disk: 80 GB, VDI, dynamically allocated.
- Check Settings → System → Motherboard: Enable EFI ✔, Secure Boot ✔ and TPM: v2.0. Windows 11 needs all three, and VirtualBox sets them automatically for the Windows 11 type.
- Settings → Network: Adapter 1 NAT, Adapter 2 Host-only (LabNet).
Install Windows
- Start the VM and press any key when you see Press any key to boot from CD or DVD. Miss it and you land in a black UEFI shell. If that happens, see Troubleshooting below.
- Choose language, time and keyboard → Install Windows 11 → accept that everything on the disk will be deleted (the empty virtual disk, not your PC).
- Select Disk 0 Unallocated Space → Next. Installation takes 10–20 minutes and reboots a few times.
Then Windows runs its setup screens (OOBE):
- Region and keyboard: yours
- Device name: WS01
- How would you like to set up this device? → Set up for work or school
- Sign-in options → Domain join instead. This creates a local account with no Microsoft account needed
- Username, e.g.
labuser, a password and the three security questions - Privacy settings: switch them all off. It's a lab machine
When the desktop appears, Windows is installed.
Install Guest Additions
Without them the mouse lags and the screen won't resize.
- In the VM window menu: Devices → Insert Guest Additions CD image.
- In File Explorer, open the CD drive and run VBoxWindowsAdditions.exe. Click through and allow the driver prompts.
- Reboot. Then turn on Devices → Shared Clipboard → Bidirectional.
Let Windows Update run once while the NAT adapter is connected.
Give it a static LabNet IP
Open PowerShell as Administrator:
Get-NetAdapter # find the LabNet adapter, usually "Ethernet 2"
New-NetIPAddress -InterfaceAlias "Ethernet 2" -IPAddress 192.168.56.30 -PrefixLength 24
You'll point its DNS at the domain controller in the next lesson.
By default Windows Firewall ignores ping. For easy testing, allow ping from LabNet only:
New-NetFirewallRule -DisplayName "LabNet ICMPv4" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -RemoteAddress 192.168.56.0/24 -Action Allow
Check how long your evaluation has left:
slmgr /dlv
Test it from Kali
ping -c 3 192.168.56.30
nmap -Pn 192.168.56.30 # -Pn: don't give up just because ping is filtered
You'll see that a fresh Windows 11 shows very few open ports. The firewall is doing its job, and that's a useful lesson in itself.
About Defender: leave Microsoft Defender on. Learning what it catches is part of the job. When a later lesson needs it off for a test, take a snapshot first and restore it afterwards.
Take a snapshot called clean-install.
Troubleshooting
| Problem | Fix |
|---|---|
| "This PC can't run Windows 11" | Check EFI, Secure Boot and TPM 2.0 in Settings → System, and at least 4 GB RAM |
Black screen showing Shell> | You missed "Press any key". Type exit, choose the DVD in Boot Manager, then press a key quickly |
| Very slow, green turtle icon | Hyper-V is active. See lesson 2. Give it 2+ CPUs |
| Screen stuck at 800×600, laggy mouse | Install Guest Additions and reboot |
| Setup insists on a Microsoft account | Use Set up for work or school → Sign-in options → Domain join instead |