Domain Setup from Scratch on Server Core

From Lucca's Wiki
Revision as of 03:22, 22 June 2024 by Lucka (talk | contribs)
Jump to navigationJump to search

==> 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: [config file is in C:\ProgramData\ssh\sshd_config]


Install the openssh server

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

Start the sshd service

Start-Service sshd

Make it autostart

Set-Service -Name sshd -StartupType 'Automatic'


Winget Package Manager: Resource


Install winget $ProgressPreference = 'SilentlyContinue'; Invoke-Webrequest -UseBasicParsing https://github.com/microsoft/winget-cli/releases/download/v1.9.1551-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile winget.appx; Add-AppxPackage .\winget.appx

$progressPreference = 'silentlyContinue'; Write-Information "Downloading WinGet and its dependencies..."; Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle; Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx; Invoke-WebRequest -Uri https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.6/Microsoft.UI.Xaml.2.8.x64.appx -OutFile Microsoft.UI.Xaml.2.8.x64.appx; Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx; Add-AppxPackage Microsoft.UI.Xaml.2.8.x64.appx; Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle