Domain Setup from Scratch on Server Core
From Lucca's Wiki
==> Make sure the PC has an IP address before starting this <== [you can set one in sconfig]
Install the domain controller services
Install-WindowsFeature -name AD-Domain-Services -IncludeManagementTools
Make this PC a domain controller. The "Safe Mode Administrator password" is the same as the regular administrator password that is set when first booting the pc.
Install-ADDSForest -DomainName mario.corp -ForestMode default -DomainMode default -DomainNetbiosName mariocorp -InstallDns:$true
Optional quality of life for my setup:
SSH Service:
Install the openssh server
Add-WindowsCapability -Online -Name OpenSSH.ServerLucka (talk) 00:36, 22 June 2024 (UTC)0.0.1.0
Start the sshd service
Start-Service sshd
OPTIONAL but recommended:
Set-Service -Name sshd -StartupType 'Automatic'