Install StackRegent on Windows Server 2022
Windows Server 2022 is the release StackRegent is tested on end to end. Websites get TLS 1.3 without extra work, and HTTP/3 is one registry change and a firewall rule away.
- 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.
What is different on Windows Server 2022#
Windows Server 2022 (build 20348) is where every StackRegent feature is available and where the product is tested end to end, on the Standard edition. Compared with 2016 and 2019, three things change for a hosting server:
| Feature | Windows Server 2022 | 2016 and 2019 |
|---|---|---|
| TLS 1.3 for websites | Yes, on by default in Windows | No, TLS 1.2 at most |
| HTTP/3 (QUIC) for websites | Yes, off by default | No |
| Built-in OpenSSH client for Git over SSH | Yes | 2019 yes, 2016 no |
HTTP/2 works on every supported release. The panel itself has its own TLS stack, so Tools & Settings › Security Policy can offer TLS 1.3 for panel connections on any release; what 2022 adds is TLS 1.3 for the websites IIS serves.
Microsoft's mainstream support for Windows Server 2022 ended in October 2026. Security updates continue under extended support until October 2031, so 2022 remains a sound choice for a new hosting server.
TLS 1.3 for websites on Windows Server 2022#
On 2022, the Windows TLS stack (Schannel) that IIS uses negotiates TLS 1.3 by default. The StackRegent installer then turns off SSL 2.0, SSL 3.0, TLS 1.0 and TLS 1.1 on the server side, so websites offer TLS 1.2 and TLS 1.3 only. There is nothing to switch on in the panel; every site with a certificate gets TLS 1.3 for clients that support it, and older clients fall back to TLS 1.2.
Switch on HTTP/3 (optional)#
HTTP/3 runs over QUIC on UDP port 443. Windows Server 2022 supports it in HTTP.sys, but it is off by default, and StackRegent leaves it that way. To switch it on:
- In an elevated PowerShell, set the two registry values Microsoft documents for HTTP/3 in IIS:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters" /v EnableHttp3 /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters" /v EnableAltSvc /t REG_DWORD /d 1 /f- Restart the server, so HTTP.sys reads the new values.
- Open UDP 443: in Tools & Settings › Firewall, click Add rule, enter a Name such as
HTTP/3, set Direction to Incoming, Action to Allow and Protocol and ports to UDP 443, then Activate and Keep these settings. Open UDP 443 in any provider firewall too.
EnableAltSvc makes IIS announce HTTP/3 in an Alt-Svc header, so browsers first connect over HTTP/2 and switch to HTTP/3 on later requests. HTTP/3 always uses TLS 1.3, so it applies only to sites with a certificate.
Prepare the server#
- Install Windows updates and restart until no more are offered. The installer adds the IIS role, and a server with pending updates is more likely to ask for a restart halfway.
- Set the computer name you want to keep (
Rename-Computer, then restart). The license activation records it. - Give the server a fixed IP address and create the
Arecord of its host name, for exampleserver1.example.com. - Check the edition and installation option:
Get-ComputerInfo -Property WindowsProductName, OsBuildNumber, WindowsInstallationTypeThe build should be 20348. WindowsInstallationType shows Server for Desktop Experience and Server Core for Server Core.
- Open ports in your provider's firewall: TCP 9443 for the panel and TCP 80 and 443 for websites, plus UDP 443 if you plan HTTP/3. The requirements page lists the rest.
Install StackRegent on Windows Server 2022#
Step 1: Open an elevated PowerShell#
On Desktop Experience, right-click Windows PowerShell and choose Run as administrator. On Server Core, the console that opens at sign-in runs as the administrator; type powershell if you are at the sconfig menu or a command prompt.
Step 2: Run the one-line installer#
[Net.ServicePointManager]::SecurityProtocol='Tls12'; & ([scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://panel.stackregent.com/get/stackregent.ps1'))) -LicenseKey SR-XXXXX-XXXXX-XXXXX-XXXXX -Hostname server1.example.com -AdminEmail you@example.comThe script activates the license, downloads the newest stable release, checks its size, SHA-256 and signature, and runs install.ps1. Use the zip package instead if you want to inspect the release first or need other ports.
Step 3: Wait for the components#
After the panel itself is running, the installer sets up the recommended components one at a time and prints a line for each. If the Visual C++ runtime is missing on your image, the installer adds it before MariaDB.
Step 4: Save the login#
Copy the panel address, the login admin and the password from the last lines. The password is not stored in plain text anywhere.
Server Core on Windows Server 2022#
Server Core runs StackRegent with everything except IIS Manager and the Service Monitor tray app. Some practical points:
- Open the panel from a browser on another computer:
https://server1.example.com:9443/. - The jobs of the tray app are done with the command line:
Restart-Service StackRegentrestarts the panel, and& "C:\Program Files\StackRegent\bin\stackregent.exe" sessions-purgelogs everyone out. - Use
sconfigfor Windows Update, the network and the computer name. - Lockout recovery works the same way:
stackregent firewall-reset,stackregent ip-access-resetandstackregent panel-url-resetrun from the console.
Check the installation#
Run these in the same PowerShell window:
Get-Service StackRegent, StackRegentTask, StackRegentGuard, StackRegentSQL
& "C:\Program Files\StackRegent\bin\stackregent.exe" version
& "C:\Program Files\StackRegent\bin\stackregent.exe" license-checkAll four services should be Running, the version should match the release notes, and the license should report as licensed. Then log in and open Tools & Settings › About StackRegent: its feature table marks your release, and TLS 1.3 and HTTP/3 should show as available.
To confirm TLS 1.3 on a website once it has a certificate, use the curl.exe that ships with Windows:
curl.exe -sI --tlsv1.3 https://www.example.com/A response means the site accepted TLS 1.3. If you switched on HTTP/3, the response headers include alt-svc with h3.
Finally, run Tools & Settings › Diagnose & Repair › Check Everything and continue with getting started.
Frequently asked questions
Is Windows Server 2022 the best version for StackRegent?
It is the release StackRegent is tested on end to end, and it has every feature, including TLS 1.3 and HTTP/3 for websites. Windows Server 2025 has the same features and longer support; either is a good choice for a new server.
Does StackRegent turn on HTTP/3 by itself?
No. HTTP/3 is off by default in Windows Server 2022 and StackRegent leaves it off. Set the EnableHttp3 and EnableAltSvc registry values, restart, and open UDP 443 in the firewall to switch it on.
Do I need to enable TLS 1.3 for IIS on Windows Server 2022?
No. Windows Server 2022 negotiates TLS 1.3 by default, and the StackRegent installer only turns off the old protocols. Every website with a certificate offers TLS 1.3 and TLS 1.2.
Can I install StackRegent on Windows Server 2022 Datacenter?
Yes. Standard and Datacenter behave the same for StackRegent; the edition only matters for your Windows and virtualization licensing.
Windows Server 2022 mainstream support has ended. Should I still use it?
Mainstream support ended in October 2026, but Microsoft keeps shipping security updates under extended support until October 2031. That is long enough for a hosting server you set up today.