---
title: "Deploy Windows Server"
description: "Windows Server 2025 with IIS on your domain, plus SSH and RDP. Needs Pro."
category: "Other"
url: https://railway.com/deploy/windows-server-2025
---

# Deploy Windows Server

Windows Server 2025 with IIS on your domain, plus SSH and RDP. Needs Pro.

**[Deploy Windows Server on Railway](https://railway.com/template/windows-server-2025)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/windows-server-2025/manifest.json

- **Creator:** Two Workspaces
- **Category:** Other

## Template content

### windows-server https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/microsoft-windows.svg

- **Image:** ghcr.io/two-workspaces/windows:f4ac3e0
- **Health check:** /healthcheck
- **Public domain:** Yes

## Documentation

# Deploy and Host Windows Server on Railway

[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/windows-server-2025?referralCode=sLjDXb&utm_medium=integration&utm_source=button&utm_campaign=windows-server)

This template runs Windows Server 2025 on Railway as a server you host things on. IIS serves your website on your Railway domain. You manage the server over SSH (PowerShell), Remote Desktop, or a web console in your browser. On first boot it downloads the installer from Microsoft, installs Windows unattended and sets up IIS and OpenSSH, with nothing to click through. It needs a Railway Pro plan (see below).

## About Hosting Windows Server

Windows runs in a QEMU virtual machine, packaged by the open source [dockur/windows](https://github.com/dockur/windows) project. Railway offers no hardware virtualization (KVM), so QEMU emulates the CPU. It's several times slower than a Windows VPS, which suits a small IIS site, an internal tool, a Windows-only service or a scheduled job. It doesn't suit heavy traffic.

The service gets two public addresses:

- **Your site:** a Railway domain on port 80, served by IIS. Add your own domain to it in *Settings → Networking*, and Railway serves it over HTTPS.
- **The web console:** a second Railway domain showing the Windows screen in your browser, behind the Windows login.

SSH (port 22) and Remote Desktop (port 3389) each get a TCP proxy. All of them use the Windows account in `USERNAME` and `PASSWORD`. The virtual disk lives on the volume at `/storage`, so your sites, settings and files survive redeploys.

Want a Windows desktop to use rather than a server? See the [Windows](https://railway.com/deploy/windows?referralCode=sLjDXb) template by the same author.

## Common Use Cases

- Host an ASP.NET (Framework 4.8) or classic IIS website that needs Windows
- Run a Windows-only service, API or background worker with an address of its own
- Run scheduled PowerShell jobs on a server you reach over SSH
- Try Windows Server 2025 and its roles in a disposable environment

## Dependencies for Windows Server Hosting

- None. It's a single service with a volume.

### Deployment Dependencies

- [dockur/windows](https://github.com/dockur/windows) (QEMU, noVNC web console)
- Windows Server evaluation media, downloaded from Microsoft on first boot

### Implementation Details

**It needs a Pro plan.** Windows uses `RAM_SIZE` (4 GB by default) plus about 2 GB for the emulator, and the first install needs about 30 GB of disk. Railway caps volumes at 5 GB on Hobby, while Pro volumes start at 50 GB. The template checks both when it starts. If either is too small, both domains show a page saying what's missing instead of starting Windows, so a deploy on Free, Trial or Hobby explains itself and doesn't crash. On Pro, if the volume was made smaller than 30 GB, resize it (click the volume, then *Settings*): Windows starts by itself once there's room.

**First boot takes one to three hours.** Watch it on the console domain, which shows the download and then the installer. How long depends on the Railway host the service lands on, since the CPU is emulated: in our tests Server 2025 took about 75 minutes on an AMD EPYC host and over three hours on an older Intel one. SSH answers when Windows has finished setting up, and your site domain once IIS is installed after that. Don't redeploy or restart meanwhile: an interrupted install starts over. Later boots take a few minutes.

**SSH:** find the TCP proxy for port 22 under *Settings → Networking*, then `ssh -p ‹port› admin@‹domain›.proxy.rlwy.net` with your `PASSWORD`. You land in PowerShell. To use a key, add it to `C:\ProgramData\ssh\administrators_authorized_keys`. PowerShell remoting works over the same connection: `Enter-PSSession -HostName ‹domain›.proxy.rlwy.net -Port ‹port› -UserName admin`. Copy files with `scp -P ‹port›`.

**Your site:** IIS serves `C:\inetpub\wwwroot`, which starts with a placeholder page. Replace it with your files, or add a site and an app pool in IIS Manager (over Remote Desktop) or with PowerShell's WebAdministration module. ASP.NET 4.8 is installed. For .NET 8+, install the ASP.NET Core Hosting Bundle.

**Choosing what's set up:** `SERVER_ROLES` lists what's installed on first boot, `ssh,iis` by default (SSH first, since it is quicker to set up). Set it to `ssh` for a server with no web site, or leave it empty for neither. `VERSION` picks Windows Server `2025` (default), `2022` or `2019`. Both take effect only on the first install. `USER_PORTS` lists the ports passed into Windows. To reach another service inside Windows, add its port there and give it a TCP proxy or domain.

**Remote Desktop:** connect any RDP client to the TCP proxy for port 3389 with the same login. While someone is signed in over RDP, the web console shows the lock screen.

**Licensing:** Windows Server is downloaded from Microsoft as an evaluation edition, which runs for 180 days unless you activate it with your own license key. You're responsible for licensing the copy you run.

**Cost:** an idle server used about 5.5 GB of memory and half a vCPU in our tests, more under load. Most of the memory is Windows' own `RAM_SIZE` plus the emulator. The template drops the kernel's cache of the Windows disk every 5 minutes, which saved about 0.8 GB at idle; without it the cache grows until it fills the service. Check usage in the first days, and lower `RAM_SIZE` if your workload is small (it applies at the next restart).

**Shutting down:** shut Windows down from its Start menu (or `Stop-Computer`) and the service stays up on a small page, using almost no CPU or memory. Restart the deployment to boot it again. A redeploy gives Windows up to two minutes to shut down cleanly; Railway's *Restart* doesn't, so shut Windows down first.

**Limits:**

- CPU emulation: expect it to be slower than a real server.
- No GPU, no nested virtualization (Hyper-V, Docker Desktop and WSL 2 won't run), no USB devices.
- Inbound traffic reaches Windows only on the ports in `USER_PORTS`.

Windows and Windows Server are trademarks of Microsoft. This community template is not affiliated with or endorsed by Microsoft or the dockur project.

## Why Deploy Windows Server on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Windows Server on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/windows-server-2025
