Configuring Windows Server 2019

Master configuring Windows Server 2019 with this in-depth guide for sysadmins. Learn step-by-step installation, network setup, security hardening, Active Directory, and best practices to optimize your server deployment efficiently.

Configuring Windows Server 2019: Complete SysAdmin Guide

Struggling to get your Windows Server 2019 up and running smoothly? Many sysadmins face challenges with initial setup, security configurations, and role optimizations that lead to downtime or vulnerabilities.

In this comprehensive guide, you’ll learn configuring Windows Server 2019 from scratch. We’ll cover installation, core configurations, networking, security, Active Directory deployment, performance tuning, and troubleshooting. By the end, you’ll have actionable steps to deploy a secure, efficient server environment tailored for enterprise needs.

Table of Contents

Understanding Windows Server 2019

Windows Server 2019 builds on its predecessor with enhanced hybrid cloud integration, improved security, and container support. Released in 2018, it introduces features like Windows Defender ATP, Storage Spaces Direct, and Shielded VMs for virtualization.

Key architecture highlights include the Nano Server option for minimal footprint deployments and Hyper-V enhancements for better VM isolation. Sysadmins benefit from Storage Replica for disaster recovery and Hybrid Azure AD join for cloud syncing.

Core concepts revolve around Server Core vs. Desktop Experience installations. Server Core reduces attack surface by omitting GUI, ideal for remote management via PowerShell or RSAT tools.

This foundation ensures scalability for SMBs to enterprises. For official details, see Microsoft’s Windows Server 2019 overview.

System Requirements and Planning

Before configuring Windows Server 2019, assess hardware and plan your deployment.

Minimum and Recommended Hardware

Use this table for quick reference:

ComponentMinimumRecommendedNotes
Processor1.4 GHz 64-bit2+ GHz multi-coreSupports up to 64 sockets, 4 TB RAM
RAM512 MB (Server Core), 2 GB (Desktop)8+ GBECC recommended for production
Storage32 GB100+ GB SSDNTFS or ReFS; RAID for redundancy
Network1 Gbps adapter10 Gbps+RDMA for Storage Spaces Direct

Planning Checklist

  • Edition selection: Essentials for small biz, Standard for basic virtualization, Datacenter for unlimited VMs.
  • Licensing: Per-core model; calculate based on physical cores.
  • Virtualization: Plan for Hyper-V if hosting VMs.

[Link to related article about Windows Server editions comparison]

Practical tip: Run the Server 2019 Readiness Check tool from Microsoft to validate hardware.

Installing Windows Server 2019

Installation is straightforward but critical for stability.

Step-by-Step Installation Guide

  1. Boot from media: Use USB/DVD with ISO downloaded from Microsoft Volume Licensing Service Center.
  2. Select language and edition (e.g., Server Core).
  3. Choose Custom install; partition drives (avoid dynamic disks initially).
  4. Enter product key or skip for later activation.
  5. Let setup complete; reboot into OOBE (Out-of-Box Experience).

For unattended installs, use Windows SIM to create autounattend.xml:

xml<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE">
            <SetupUILanguage><UILanguage>en-US</UILanguage></SetupUILanguage>
        </component>
    </settings>
</unattend>

Post-install, run sconfig.cmd in Server Core for basics.

Initial Post-Installation Configuration

After reboot, configure essentials via sconfig or PowerShell.

Using Sconfig for Server Core

Launch sconfig.cmd and navigate:

  • Option 1: Set hostname (e.g., DC01).
  • Option 4: Enable Remote Desktop.
  • Option 5: Configure network adapter.
  • Option 6: Join domain.
  • Option 7: Update Windows.

PowerShell-First Approach

Preferred for automation:

powershell# Rename computer
Rename-Computer -NewName "WS2019-SRV01" -Restart

# Set static IP
New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress 192.168.1.10 -PrefixLength 24 -DefaultGateway 192.168.1.1

# Enable WinRM for remoting
Enable-PSRemoting -Force

Admin shares like C$ are enabled by default; secure them later.

[Link to product page about PowerShell for sysadmins]

Networking and Remote Access Setup

Reliable networking is foundational for Windows Server 2019 management.

Configuring TCP/IP and DNS

Use PowerShell for precision:

powershell# Set DNS
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("192.168.1.10","8.8.8.8")

# Flush DNS
Clear-DnsClientCache

Remote Management Tools

  • RSAT: Install on Windows 10/11 for GUI management.
  • WinRMwinrm quickconfig.
  • SSH: Enable via Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0.
ToolProsConsUse Case
PowerShell DirectNo network neededHyper-V host onlyVM management
RSATFamiliar GUIClient install requiredAD/User management
SSHCross-platformLess Windows-nativeSecure remote scripting

Enable firewall rules: Enable-NetFirewallRule -DisplayGroup "Remote Desktop".

For advanced setups, explore NIC Teaming documentation.

Security Hardening Best Practices

Security first: Windows Server 2019 includes built-in tools to minimize risks.

Core Hardening Steps

  1. Disable unnecessary servicesGet-Service | Where-Object {$_.StartType -eq 'Automatic'} | Stop-Service -Force.
  2. Apply baselines: Use Microsoft Security Compliance Toolkit.
  3. Enable BitLockerEnable-BitLocker -MountPoint C: -RecoveryKeyPath C:\RecoveryKey.txt.
  4. Configure Windows Firewall: Block inbound except RDP/WinRM.

AppLocker prevents unauthorized apps:

powershell# Example rule for PowerShell
New-AppLockerPublisherRule -User "Everyone" -Publisher "CN=Microsoft*" -Action Deny

Credential Guard and LAPS

Deploy LAPS (Local Administrator Password Solution) for randomizing local admin passwords. Limitations: Not for domain controllers.

Pros/Cons table:

FeatureProsCons
Credential GuardProtects NTLM hashesRequires TPM 2.0
Device GuardRuntime app controlHigh overhead on low-end HW
LAPSRotates local admin pwdsManual deployment initially

Internal link: [Link to related article about Windows security baselines]

Deploying Active Directory Domain Services

AD DS is central for identity management.

Installation Steps

  1. Server Manager > Add Roles > Active Directory Domain Services.
  2. Promote to DC: Install-ADDSDomainController -DomainName "contoso.com" -SafeModeAdministratorPassword (ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force).

DNS Integration

AD requires DNS; configure forwarders post-install.

Workflow: Client query → AD DNS → Root hints/forwarders.

Best practice: Separate DNS from DC for large environments.

Official guide: Active Directory Domain Services overview.

Installing and Configuring Key Roles

Leverage Server Manager or PowerShell Desired State Configuration (DSC).

Common Roles Table

RoleDescriptionConfiguration ExampleUse Case
DHCP ServerIP address assignmentAdd-DhcpServerv4Scope -Name "Lab" -StartRange 192.168.1.100 -EndRange 192.168.1.200Network automation
File ServerSMB shares with quotasNew-FsrmQuota -Path "D:\Shares" -Size 10GBStorage management
Hyper-VVirtualization hostEnable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -AllVM hosting
IISWeb hostingInstall-WindowsFeature -Name Web-Server -IncludeManagementToolsWeb apps

Hyper-V tips: Use dynamic memory; enable nested virtualization for dev/test.

Performance Optimization and Monitoring

Tune for workloads.

Key Metrics

Monitor with Performance Monitor (PerfMon):

  • CPU: % Processor Time < 80%.
  • Memory: Available Bytes > 100 MB.
  • Disk: Avg. Disk Queue Length < 2.

PowerShell for tuning:

powershell# Set power plan
powercfg /setactive SCHEME_MIN

# Optimize storage
Optimize-Volume -DriveLetter C

Best practices:

  • Disable Superfetch/SysMain on servers.
  • Use SSDs for paging file.

Tools: Windows Admin Center for browser-based monitoring.

Backup, Recovery, and Troubleshooting

Prevent data loss with Windows Server Backup.

Backup Configuration

Install-WindowsFeature Windows-Server-Backup

powershellWbadmin start backup -backupTarget:D: -include:C: -allCritical -quiet

Recovery: Boot to WinRE > System Image Recovery.

Common issues:

  • Event ID 41: Kernel power; check PSU.
  • Blue screens: Analyze with !analyze -v in WinDbg.
IssueCauseFix
RDP failsFirewall/NLAnetsh advfirewall firewall set rule group="Remote Desktop" new enable=Yes
High CPUSuperfetchDisable via services.msc
AD replicationDNS misconfigdcdiag /test:dns

FAQ

What are the main differences between Server Core and Desktop Experience in Windows Server 2019?

Server Core is GUI-less for lower resource use and security; Desktop Experience includes full GUI for easier management.

How do I activate Windows Server 2019 after installation?

Use slmgr /ipk YOURKEY then slmgr /ato via PowerShell or CMD.

Can I downgrade from Windows Server 2022 to 2019?

No direct downgrade; clean install required, but back up data first.

What’s the best way to update Windows Server 2019?

Enable Windows Update via sconfig or Install-Module PSWindowsUpdate; Get-WUInstall.

How do I enable Hyper-V on Windows Server 2019?

Run Install-WindowsFeature Hyper-V -IncludeManagementTools -Restart.

Is Nano Server supported in Windows Server 2019?

Yes, but as an OCI image primarily for containers; not for general roles.

How to configure failover clustering?

Install Failover Clustering feature, then New-Cluster -Name "MyCluster" -Node "Node1","Node2".

What’s new in security for configuring Windows Server 2019?

Features like Windows Defender Exploit Guard and Just-In-Time (JIT) admin access.

Conclusion

You’ve now mastered configuring Windows Server 2019, from installation to advanced roles, security, and optimization. Implement these steps to build a robust, secure infrastructure.

Next, test in a lab environment and deploy with monitoring. Ready to tackle Windows Server 2022 upgrades? [Link to related article about migrating to Windows Server 2022]

Would you like me to expand on a specific section, such as Hyper-V deep dive?

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top