Domain Setup from Scratch on Server Core

From Lucca's Wiki
Revision as of 18: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]


Set your hostname

Rename-Computer

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

Setup the DHCP Server: Microsoft-kb

Install-WindowsFeature DHCP -IncludeManagementTools





========quality of life tweaks below=======



VIM Text Editor:


mkdir vim-install; cd vim-install; $ProgressPreference = 'SilentlyContinue'; Invoke-Webrequest -UseBasicParsing https://github.com/vim/vim-win32-installer/releases/download/v9.1.0/gvim_9.1.0_x86_signed.zip -o gvim.zip; Expand-Archive -Path gvim.zip -DestinationPath .; cp .\vim\vim91\vim.exe C:\windows\system32\vim.exe



SSH Service:


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'

[config file is in C:\ProgramData\ssh\sshd_config]