Home Lab
Create a VM without an OS first, and then add the Windows Server 2022 ISO file as the path.
Utilities
AD
From server manager:
Add Roles and Features → Role-based or feature-based installation
Local server → AD Domains Services
Cick on the Promote to DC configuration triangle post-install
Add new forest and go through the wizard
> Import-Module ActiveDirectory
> $username = "freya"
> $password = ConvertTo-SecureString "Password123!" -AsPlainText -Force
> New-ADUser -Name $username -SamAccountName $username -AccountPassword $password -Enabled $true -PasswordNeverExpires $true -Path "CN=Users,DC=MOLLY,DC=LOCAL"
ADCS
From server manager:
Manage → Add Roles and Features
Check ADCS → Click on the post-install notification triangle
Choose CA → Enterprise CA (defaults for the rest)
# From mmc
1. Add or Remove Snap-ins
2. Add `Certificates`
3. Computer Account
4. Local Computer
5. Can then view fields/details
To find EKUs:
certtmpl.msc
→ template → right click → Properties → Extensions tab
Commands
Write-Host "Hostname: $env:COMPUTERNAME"
Write-Host "NetBIOS Name: $env:COMPUTERNAME"
Write-Host "Domain Name: $((Get-WmiObject Win32_ComputerSystem).Domain)"
Write-Host "FQDN: $([System.Net.Dns]::GetHostByName(($env:COMPUTERNAME)).Hostname)"
Hostname: DC01
NetBIOS Name: DC01
Domain Name: molly.local
FQDN: DC01.molly.local
Last updated