247-IT Guide
Protecting Hyper-V on Server Core during a power outage
Server Core has no desktop, and many UPS vendor agents require exactly that. How to shut down Hyper-V hosts without a GUI in an orderly way anyway: agentless via WinRM, or with a service on the host itself, operated from a browser.
Why Server Core is a special case
Many Hyper-V hosts run as Server Core: fewer updates, a smaller attack surface, fewer resources. Hyper-V Server 2019 was Microsoft's last free edition. Since then, Hyper-V without a desktop means a Server Core installation of Windows Server.
This raises three hurdles for UPS integration:
- No user interface — UPS vendor agents often require a desktop or a local console and are not supported, or only partly supported, on Server Core.
- USB protects one host only — a host connected via USB learns about the outage, every other host on the same UPS does not.
- Order across several hosts — VMs should shut down in a fixed order, and the UPS time budget applies to all hosts together.
Two approaches without a desktop on the host
| A: agentless via WinRM | B: service on the Core host | |
|---|---|---|
| Where does monitoring run? | on a Windows machine with a desktop | as a Windows service on a Core host |
| Software on the Core hosts | none | only on the monitoring host |
| Operation | desktop application | browser on another device |
| Prerequisite | WinRM on the hosts | WinRM on the other hosts |
Either way, monitoring queries the UPS over the network (SNMP via a network card, or NUT) and shuts the hosts down via WinRM. That way every host learns about the outage, no matter which UPS outlet it is plugged into.
The monitoring machine must be on the same UPS and keep running until every host has received its shutdown command. If monitoring runs on a host that is itself shut down, that host goes at the end of the order.
Preparing WinRM on the Core hosts
Since Windows Server 2012, remote management is enabled by default. You can check it in the
sconfig menu under "Remote management". To be safe, run this in PowerShell as
administrator on each host:
Enable-PSRemoting -Force
Then test from the monitoring machine:
# Only needed in workgroups (no domain):
Set-Item WSMan:\localhost\Client\TrustedHosts -Value 'hv-core01' -Force
Test-WSMan hv-core01
Invoke-Command -ComputerName hv-core01 -Credential (Get-Credential) -ScriptBlock { Get-VM }
If the last command returns the VM list, connection, firewall and permissions are fine. WinRM uses TCP port 5985 (HTTP, encrypted via Kerberos or NTLM) or 5986 (HTTPS). HTTPS and certificates are covered in the setup guide.
Implementation with the UPS Hyper-V Shutdown Monitor
Option A works in every edition: install the UPS Hyper-V Shutdown Monitor on a Windows machine with a desktop, add the Core hosts in the "Hyper-V Hosts" tab and set the order. Nothing is installed on the hosts.
Option B runs directly on a Core host:
- "Service only" installation type — setup installs only the Windows service, without the desktop app.
- Enable the remote web interface — with the "Service only" installation type, setup preselects the "Enable remote web interface" task. The service is then reachable at
https://SERVER:9443/. - First account with a setup token — the service writes a one-time token to
C:\ProgramData\UPSHyperVShutdown\web-setup-token.txt. You use it to create the first account in the browser. - Operate in the browser — dashboard, UPS and host configuration, reports and emergency shutdown, over HTTPS with sign-in.
The remote web interface is part of the Enterprise edition and included in the 30-day trial. How to set the VM order and time budget is covered in Shutting down Hyper-V VMs in a power outage.
Testing the sequence
- Connection — run the connection test for each host and retrieve the VM list.
- Test mode — trigger a shutdown without sending commands to the hosts. The log shows order and timings.
- Real test in a maintenance window — unplug the UPS and check that all VMs shut down cleanly before the hosts power off.
- Restart — check that hosts and VMs start in the right order once power returns.
Checklist for Server Core
- UPS over the network — network card (SNMP) or NUT server instead of USB on a single host.
- WinRM on all hosts — connection tested from the monitoring machine.
- Account with Hyper-V rights — to stop the VMs and shut the host down.
- Monitoring machine on the UPS — and at the end of the order if it is shut down itself.
- Order and time budget — fit within the UPS runtime.
- Test mode and real test — both done once and documented.
Frequently asked questions
Can Server Core shut down automatically during a power outage?
Yes. A monitoring service queries the UPS over the network (SNMP or NUT) and shuts down VMs and hosts via WinRM. The Core host needs no desktop for this.
Does software have to be installed on the Core host?
Not necessarily. If monitoring runs on another Windows machine, it controls the hosts agentless via WinRM. Alternatively it runs as a service directly on a Core host and is operated from a browser.
Is WinRM enabled by default on Server Core?
Since Windows Server 2012, remote management is enabled by default. Enable-PSRemoting -Force makes sure of it. In workgroups, the monitoring machine must also add the host as a TrustedHost.
How do I operate the software on Server Core without a desktop?
Through the remote web interface of the Enterprise edition: the "Service only" installation type preselects it; read the one-time token from C:\ProgramData\UPSHyperVShutdown\web-setup-token.txt and create the first account at https://SERVER:9443/.
More guides
Replacing UPS batteries
Ageing, warning signs and swapping without a protection gap.
Restarting after a power outage
Starting servers, storage and VMs automatically when power returns.
Eaton IPM alternative for Hyper-V
Node licensing, editions and Hyper-V integration compared.
Shutting down Hyper-V VMs in a power outage
Stop action, shutdown order and time budget for an orderly shutdown.
SNMPv3 on a UPS network card
authPriv with SHA and AES instead of a plain-text community.
NUT on Windows
Query a UPS via Network UPS Tools from a NAS or Linux server.
Hyper-V failover cluster power outage
Coordinating quorum, CSV and live migration.
Active Directory & power outages
The USN rollback myth and the real risks for domain controllers.
SQL Server & Exchange on Hyper-V
Protecting databases during a power outage.
Calculating UPS runtime
Why the datasheet runtime rarely holds.
PowerChute alternative for Hyper-V
UPS shutdown without vendor lock-in.
Monitoring UPS units from multiple vendors
One tool instead of several silos.
Set up an ordered shutdown yourself
30 days free, every feature included. With test mode and dry run, so the first real power outage is not the first test.