How to Create a VPS on Windows Server: Step-by-Step Setup Guide for 2026

Setting up a virtual private server on Windows Server gives you full control over your hosting environment without relying on third-party virtualization platforms. Microsoft’s built-in Hyper-V feature transforms your Windows Server machine into a hypervisor capable of running multiple isolated virtual machines. This guide walks through the entire process, from enabling Hyper-V to securing your new VPS for production use.

If you are evaluating Windows VPS providers for managed hosting, compare Windows VPS plans on our site to find configurations suited for your workload.

Prerequisites

  • Windows Server 2019, 2022, or 2025 (Standard or Datacenter edition)
  • 64-bit CPU with SLAT (Second Level Address Translation)
  • Minimum 4 GB RAM (8 GB+ recommended for multiple VMs)
  • Windows Server installation media (ISO) for the guest OS
  • Administrator access to the host server

Step 1: Enable the Hyper-V Role

Hyper-V is included with Windows Server but not enabled by default. You can install it via Server Manager or PowerShell.

PowerShell method (run as Administrator):

Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart

GUI method:

  1. Open Server Manager from the Start menu
  2. Click Manage → Add Roles and Features
  3. Select Hyper-V from the server roles list
  4. Include management tools and complete the installation
  5. Restart the server when prompted

After restarting, the Hyper-V Manager console appears in your Administrative Tools.

Step 2: Configure a Virtual Switch

Before creating your first VM, set up a virtual switch so the VPS can communicate with the network.

  1. Open Hyper-V Manager
  2. In the right pane, click Virtual Switch Manager
  3. Select External to bind the switch to the host’s physical NIC
  4. Name the switch (e.g., “External Switch”)
  5. Check Allow management operating system to share this adapter
  6. Click Apply and OK

Step 3: Create the Virtual Machine

With Hyper-V and the virtual switch ready, create the VM that will become your VPS.

  1. In Hyper-V Manager, click New → Virtual Machine
  2. Specify a name for the VM (e.g., “WebServer-VPS”)
  3. Choose Generation 2 for UEFI-based VMs (supports Secure Boot and larger disks)
  4. Assign memory: minimum 2048 MB (use dynamic memory for efficient allocation)
  5. Configure network: select the external virtual switch created earlier
  6. Create a virtual hard disk: 40 GB minimum (NTFS or ReFS format)
  7. Install the OS from an ISO file later by booting the VM
  8. Review and finish the wizard

Step 4: Install the Operating System

  1. Right-click the VM and select Connect
  2. Click the CD icon and choose Insert Disk → Browse for ISO
  3. Select the Windows Server ISO file
  4. Click Start to boot the VM
  5. Proceed through the Windows installation wizard
  6. Set a strong Administrator password
  7. Complete installation and log in to the new VPS

Step 5: Configure Network Settings

Assign a static IP address to the VPS for consistent access.

# Check current network configuration
ipconfig /all

# Set a static IP via PowerShell
New-NetIPAddress -InterfaceIndex (Get-NetAdapter).ifIndex -IPAddress 192.168.1.100 -PrefixLength 24 -DefaultGateway 192.168.1.1
Set-DnsClientServerAddress -InterfaceIndex (Get-NetAdapter).ifIndex -ServerAddresses 8.8.8.8, 1.1.1.1

Step 6: Secure the VPS

Apply these security measures immediately after setup:

  • Run Windows Update to install all critical patches
  • Enable Windows Defender Firewall with strict inbound rules
  • Create a dedicated admin account and disable the built-in Administrator
  • Enable RDP with Network Level Authentication (NLA)
  • Install antivirus or enable Microsoft Defender
  • Configure RDP access restrictions (limit to specific IP ranges)
# Create a new admin account and disable the default one
New-LocalUser -Name "ops-admin" -Password (Read-Host -AsSecureString)
Add-LocalGroupMember -Group "Administrators" -Member "ops-admin"
Disable-LocalUser -Name "Administrator"

Step 7: Optimize Performance

Optimization AreaRecommended SettingImpact
Dynamic MemoryEnable, min 512 MB, max 4096 MBBetter host resource sharing
Virtual disk typeFixed-size VHDX for productionConsistent I/O performance
Resource meteringEnable per-VM meteringTrack usage per tenant
CheckpointsProduction checkpoints with backupQuick rollback capability

Managing Multiple VPS Instances

Once your first VPS is running, you can clone it or create additional VMs for different purposes.

# Export a VM for backup or migration
Export-VM -Name "WebServer-VPS" -Path "D:\VM-Exports"

# Create a new VM from an existing template
New-VM -Name "DB-Server-VPS" -MemoryStartupBytes 4GB -BootDevice VHD -VHDPath "D:\Templates\Win2025-base.vhdx" -SwitchName "External Switch"

Conclusion

Creating a VPS on Windows Server using Hyper-V gives you an enterprise-grade virtualization platform at no extra cost. With proper configuration, network setup, and security hardening, your self-hosted VPS can match or exceed the performance of many managed providers. For organizations that prefer a managed solution, check out Windows VPS providers that handle infrastructure and maintenance so you can focus on your applications.

Leave a Comment