Here is a quick TO DO list of things that need to be done after a OOB Server 2019 Core install. These steps should also be executed for the Desktop Experience version, as well. I’ve had this list for a while now, but thought it would be good to post it.

Basic Setup

  • sconfig.exe
  • Date / Time, Time Zone
  • Install (or Update) VMWare Tools, mount ISO and then run d:\setup64.exe
  • change IP in network settings
  • change telemetry to Security
  • change domain, which will also ask you to change computer name (On Desktop version, run sysdm.cpl)
  • Windows Activation should be performed by a KMS server.
  • download / install ALL updates

Allow Ping

  • netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow

Rename Admin Account

  • wmic useraccount where name='Administrator' rename SomethingElseAdmin

Update Path

  • Add c:\bin to the System Variable via regedit:
  • HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path

Temp Folder

  • mkdir c:\temp

Install Antivirus

  • Reboot after installation

Monitoring

  • Add VM to your monitoring system, including ping and monitoring service health

AD Protection

In AD, move the new VM to the appropriate OU under Servers, and the under its object tab, click Protect from Accidental Deletion

Task Manager

  • Add Disk to Task Manager -> Performance
  • diskperf -Y
  • (then restart taskmgr)

WSUS Key Fix - only needed if VM is deployed from a Template

1
2
3
4
5
6
net stop wuauserv
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientIdValidation /f
wuauclt /resetauthorization /detectnow

Backups

  • Add the VM to your backup rotation.

Change RDP Port - regedit

  • Do not expose the RDP port to the Internet!
  • HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Rcp
  • portNumber = 54321

Change RDP Port - command line

  • Do not expose the RDP port to the Internet!
  • netsh advfirewall firewall add rule name=”54321 Remote Desktop” dir=in action=allow protocol=TCP localport=54321
  • (in sconfig, you will now need to Enable Remote Desktop)

Miscellaneous Config


Powershell: Add User to Login As a Batch Job Security Rights (this is for Scheduled Tasks)

Create a Network Share Example

  • net share uhs="c:\test" /grant:"test-ad\Information Technology",CHANGE /users:100 /cache:None
  • icacls c:\test\* /grant:r "test-ad\Information Technology":(OI)(CI)M /T

Add a local user example

  • net user ServiceAccount * /add /ACTIVE:yes /EXPIRES:never /usercomment:"Used by Random Department"
  • net user ServiceAccount /expires:never
  • wmic USERACCOUNT WHERE "Name='ServiceAccount'" set PasswordExpires=False

Scheduled Tasks Example

Server Core - GUI Programs