Skip to content

Instantly share code, notes, and snippets.

Windows Server 2022: https://info.microsoft.com/ww-landing-windows-server-2022.html
Untick' Power on this virtual machine after creation'. Then go to VM settings and remove the Floppy. Then power it on.
On partition page, just click next
Set password for local administrator in lusrmgr.msc to match password policy (Local users & computers)
Set-WinUserLanguageList -LanguageList sv-SE -Force
Install-windowsfeature -name AD-Domain-Services -IncludeManagementTools
Install-ADDSForest -DomainName "cops.gov" -DomainMode Default -ForestMode Default -SafeModeAdministratorPassword (ConvertTo-SecureString -AsPlainText "Af!12s445@#@3d!!" -Force) -InstallDNS -force
Rename-Computer -NewName "DC01" -DomainCredential cops.gov\administrator -Restart
Enable-PSRemoting -Force