Install StackRegent on Windows Server 2025
Windows Server 2025 has every StackRegent feature and the longest support ahead of it. A few things to check before you install, mostly about the CPU and the image you start from.
- Get a license key from the store (or the free trial): it is on your service page.
- Prepare the server: Windows updates installed, a host name, a static IP address, signed in as an administrator.
- Run the installer in an elevated PowerShell, with your key in place of the Xs:
[Net.ServicePointManager]::SecurityProtocol='Tls12'; & ([scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://panel.stackregent.com/get/stackregent.ps1'))) -LicenseKey SR-XXXXX-XXXXX-XXXXX-XXXXXThe installer activates the license, downloads the newest release, checks its size, SHA-256 and signature, installs IIS and the panel, then opens it at https://SERVER:9443/. Every installer parameter.
Why choose Windows Server 2025 for StackRegent#
Windows Server 2025 (build 26100) is the newest release StackRegent supports, and the one Microsoft will support longest. For a hosting server you plan to run for many years, that matters more than any single feature: a server installed on 2016 today has to be migrated within months, while 2025 leaves you years of security updates.
Feature by feature, 2025 matches 2022:
- TLS 1.3 for websites, negotiated by default by Windows, with TLS 1.0 and 1.1 turned off on the server side by the StackRegent installer.
- HTTP/3 (QUIC), available and off by default.
- HTTP/2 for HTTPS sites.
- The built-in OpenSSH client, which the Git tool uses for repositories over SSH.
- Subscription limits for CPU, memory, disk I/O and processes through Windows job objects.
StackRegent's own end-to-end test server runs Windows Server 2022 Standard; 2025 is fully supported, and Tools & Settings › About StackRegent shows the feature table with your release marked.
What to check before installing on 2025#
The CPU and the hypervisor#
Windows Server 2025 needs a 64-bit processor with the SSE4.2 and POPCNT instructions. Current hardware has them, but some virtual machines hide CPU features from the guest, for example in a compatibility mode for live migration between hosts of different generations. If the installation of Windows itself fails or the VM does not boot, ask your provider to pass the host's CPU features through.
SMB signing#
Windows Server 2025 requires SMB signing in more cases by default than earlier releases. The StackRegent installer requires signing for the SMB server on every release anyway, so this changes nothing for the panel. If you copy files from an old NAS or server that cannot sign SMB traffic, use another way, such as FTPS, SFTP or a backup file on remote storage.
Microsoft Defender#
StackRegent uses Microsoft Defender to scan website folders and mail. The installer adds the Defender feature when an image comes without it (it becomes active after a restart) and excludes database files from real-time scanning. Some provider images ship with Defender removed; restart once after the installation in that case.
HTTP/3 on Windows Server 2025#
HTTP/3 needs UDP 443 and two values in the HTTP.sys registry key, EnableHttp3 and EnableAltSvc, both set to 1 under HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters, followed by a restart. Then allow UDP 443 inbound with an own rule under Tools & Settings › Firewall and in any provider firewall. The Windows Server 2022 guide shows the exact commands; they are the same on 2025. Leave HTTP/3 off if you have no need for it; HTTP/2 over TLS 1.3 already serves most sites well.
Prepare the server#
- Run Windows Update until it reports no more updates, and restart.
- Rename the computer if needed and restart. The license activation records the computer name.
- Give the server a fixed public IP address and create an
Arecord for its host name. - Confirm the build:
(Get-CimInstance Win32_OperatingSystem) | Select-Object Caption, BuildNumberThe build should be 26100.
- Open TCP 9443, 80 and 443 in the provider's firewall or security group.
Install StackRegent on Windows Server 2025#
Step 1: Start PowerShell as administrator#
Use Windows PowerShell, not PowerShell 7. The installer is written for Windows PowerShell 5.1, which every Windows Server release includes.
Step 2: Run the installer#
[Net.ServicePointManager]::SecurityProtocol='Tls12'; & ([scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://panel.stackregent.com/get/stackregent.ps1'))) -LicenseKey SR-XXXXX-XXXXX-XXXXX-XXXXXAdd -Hostname and -AdminEmail if you know them already. To pick the components yourself, add for example -Components "urlrewrite,dns,ftp,webdeploy,php,mailenable,roundcube,mariadb-hosting,phpmyadmin,mssql,aspnetcore". Every parameter is explained in the installation overview.
Step 3: Restart once after the first login#
After you have saved the password and logged in once, restart the server at a quiet moment. Some of the baseline changes the installer makes, such as the page file size and the server-side TLS settings, and a newly added Defender feature, take effect only after a restart. The panel services start by themselves.
Server Core on Windows Server 2025#
Server Core is a good fit for a hosting server: fewer components to patch and less to attack. StackRegent installs the same way; only IIS Manager and the Service Monitor tray app are skipped. Manage the panel from a browser on your own computer and use the console for the rest:
Restart-Service StackRegent
& "C:\Program Files\StackRegent\bin\stackregent.exe" version
& "C:\Program Files\StackRegent\bin\stackregent.exe" admin-passwordIf you need graphical tools on the server, such as a database client, choose Desktop Experience instead; an installed Server Core cannot be switched to Desktop Experience later.
Check the installation#
- Confirm the services:
Get-Service StackRegent* | Format-Table Name, Status, StartTypeStackRegent, StackRegentTask, StackRegentGuard and StackRegentSQL should be running and automatic.
- Check that the panel answers locally:
Test-NetConnection -ComputerName localhost -Port 9443should reportTcpTestSucceeded : True. - Log in from outside at
https://SERVER-IP:9443/. If it works locally but not from outside, the provider's firewall is still closed. - Open Tools & Settings › License Information and confirm the state is Licensed.
- Run Tools & Settings › Diagnose & Repair › Check Everything and fix what it reports.
Then continue with getting started and the security checklist.
Frequently asked questions
Does StackRegent support Windows Server 2025?
Yes. Windows Server 2025 is fully supported, with every feature including TLS 1.3 and HTTP/3 for websites, the built-in OpenSSH client and per-subscription resource limits.
Should I choose Windows Server 2025 or 2022 for a new hosting server?
Both have every StackRegent feature. Choose 2025 for the longest Microsoft support, or 2022 if your provider's images or your other software are not ready for 2025 yet. StackRegent's own end-to-end test server runs 2022.
Why does Windows Server 2025 not install on my virtual machine?
Windows Server 2025 needs a CPU with the SSE4.2 and POPCNT instructions. Some hypervisors hide them in a compatibility mode. Ask your provider to expose the host CPU's features to the VM.
Can I run the StackRegent installer from PowerShell 7?
Use Windows PowerShell 5.1, which is part of every Windows Server release. The installer and the panel's own scripts are written for it.
Can I upgrade Windows Server 2022 to 2025 under StackRegent?
An in-place upgrade of Windows changes system components that IIS, MailEnable and the hosting accounts depend on. The safer path is a new 2025 server and a server-to-server migration; see the migration guide.