247-IT Guide
Backup server, NAS and file server shutdown in a power outage
Next to the Hyper-V hosts, most small environments also run a backup server, a file server and a NAS. When the power fails, they must neither disappear before the VMs nor keep running until the battery is empty. How to add Windows servers without the Hyper-V role to the emergency shutdown via WinRM, plan their order relative to hosts and storage, shut down less important servers earlier, and what is realistically possible with a NAS that runs no Windows.
What goes wrong between hosts and storage
A typical small-business setup: one or two Hyper-V hosts, a physical backup server running Veeam or a comparable product, a file server and a NAS used as a backup target or as SMB storage for VMs. The hosts are shut down in a power outage; the other machines hang off the same UPS but off no shutdown logic at all. Three things then happen:
- Storage disappears before the VMs — the NAS shuts down through its own USB client at 20% battery while the VMs on the SMB share are still running. Hyper-V reports I/O errors, VMs hang in the “Stopping” state, and the host waits for disks that no longer answer.
- Backup job dies mid-run — the backup server has no UPS client and runs until the battery is empty. A running job then leaves an incomplete backup and, with Hyper-V backups, possibly an open checkpoint on the host that is only merged on the next run.
- File server with open handles — clients have files open and the server loses power hard. The file system comes back up from its journal, but the files being written at that moment are damaged or empty.
The fix is a shutdown order that knows every machine on the UPS. Besides the Hyper-V hosts, the UPS Hyper-V Shutdown Monitor therefore also handles extra servers: Windows servers without the Hyper-V role that receive the same shutdown command via WinRM and sit in the same order. Extra servers are part of every edition. How the hosts themselves are shut down is covered in the guide Shutting down Hyper-V VMs in a power outage.
Adding Windows servers without Hyper-V via WinRM
An extra server needs nothing on the target except enabled PowerShell remoting. The software
connects via WinRM, runs shutdown.exe /s /f /t <delay> and evaluates the
return code; if Windows reports that a shutdown is already scheduled (exit code 1190), the
command counts as sent. No Hyper-V cmdlets are involved, so Server Core is enough.
| Field | Default | Meaning |
|---|---|---|
| Hostname, WinRM port, SSL | Port 5985, SSL off | HTTP on 5985 or HTTPS on 5986. With a self-signed certificate, also enable skipping the certificate checks. |
| Username, password, domain | Required | The account that runs shutdown.exe on the target. It must be allowed to log on via WinRM and hold the “Shut down the system” right; a member of the local Administrators group satisfies both. Passwords are stored DPAPI-encrypted in the configuration. |
| Authentication | Negotiate | Negotiate picks Kerberos or NTLM. Kerberos enforces domain authentication with a host name. Basic is only acceptable with SSL. “NTLM” is mapped to Negotiate internally. |
| Shutdown Delay | 30 s | The value passed to shutdown.exe /t: the time between the accepted command and the actual shutdown, in which services can still close connections. |
| Shutdown Order | 0 | Stage in the sequence, counted together with the Hyper-V hosts. Lower values first, equal values in parallel (section 03). |
| Assigned UPS | none | Without an assignment the server shuts down on any UPS failure. With one, only for that UPS (Pro, section 05). |
| Individual runtime threshold | blank | A separate, earlier threshold for this server, independent of the global sequence (Pro, section 04). |
Preparation is the same as for a Hyper-V host: Enable-PSRemoting -Force on the
target server, plus the TrustedHosts entry on the machine running the software when you are in
a workgroup, see the setup guide. The “Test” button checks the WinRM
connection and shows the target's PowerShell version. It does not check whether the account may
shut the machine down; only a shutdown in a maintenance window shows that. Do not add the machine
running the software as an extra server, or it shuts itself down in the middle of the sequence;
the configuration check warns about this. Use the “Shut down local machine” option on the
Service tab instead, which always runs at the very end.
Shutting down hosts, backup and storage in stages
Hyper-V hosts and extra servers share the same Shutdown Order value. During a shutdown the software collects every value in use, sorts them ascending and works through them as stages. Within a stage all targets run in parallel, hosts and servers alike; a backup server with order 0 therefore shuts down together with the hosts. The next stage begins only when the current one is complete. If “Shut down local machine” is enabled, the machine running the monitor comes after all stages. If the software runs in a VM on one of the hosts, that host automatically gets its own final stage.
| Stage | Targets | Why here |
|---|---|---|
| 0 | Hyper-V hosts with the application VMs | VMs need storage and network until the end. Inside the host, the VM order decides what goes first. |
| 1 | Backup server (extra server) | A running job aborts at the latest when the VMs are gone. After that the server only has to close its repository cleanly. |
| 2 | File server, Windows storage server (extra server) | Hosts and backup access shares until the end. Storage goes last, once no client writes any more. |
| last | Local machine running the monitor | Automatically after all stages, with its own delay (default 60 s). |
Two things matter here. First, the software does not wait until a target is
actually off. An extra server counts as done as soon as shutdown.exe has accepted
the command; a host, as soon as its VMs are stopped and the host command has been sent. The next
stage then starts immediately. If the file server really has to leave the network after the
hosts, give it a longer shutdown delay than the hosts, say 180 s against 30 s. The delay is the
knob for the time gap.
Second, all stages share one time budget equal to the largest configured host budget (default about 630 s). Once it is used up, the remaining stages only get the host command without a VM phase. Every stage therefore costs battery runtime that has to be part of the runtime threshold, see Calculating UPS runtime. Two stages are enough for most environments: hosts and backup together, storage afterwards.
Shutting down less critical servers earlier
The order decides what goes first once the global threshold is reached. Until then, every machine draws from the same battery, including the backup server, which does nothing useful during an outage. This is what the individual runtime threshold per extra server (Pro) is for:
- Its own threshold — if the UPS on battery reports a runtime at or below this value, only this server is shut down. The rest of the environment keeps running. Example: global threshold 300 s, backup server 900 s.
- Same confirmation — the threshold must be undercut for as many consecutive polls as in the global sequence (default 3 polls of 30 s), counted per server. A single runtime outlier shuts nothing down. When mains return, the counter drops to zero.
- Only with a reported runtime — if the UPS provides no value, the threshold is not evaluated. The server then follows the global sequence.
- No second command — if the regular shutdown starts later in the same outage, it skips the server that is already down.
- Time budget per poll — all due early shutdowns together get 120 s per pass. A hanging server therefore does not block detection of the actual outage; its command finishes in the background.
Without a Pro license the field has no effect: the software writes one warning to the log and the server follows the global sequence. In monitoring-only mode (Enterprise) there is no early shutdown, just as nothing else is shut down there. In test mode the threshold is evaluated and a history entry is written, but no command is sent; that lets you check with a manual poll whether the threshold matches the reported runtime.
Extra servers with several UPS units
With several UPS units (Pro), each Hyper-V host gets an assigned UPS. For extra servers the assignment is optional and has a deliberately different default: a server without an assignment is treated as belonging to every UPS and shuts down on any UPS failure. That is the fail-safe behaviour, because a file server whose power feed nobody recorded should, in doubt, be shut down too early rather than not at all. Only an explicit assignment restricts it to that one UPS. If a server with two power supplies hangs off two UPS units, you can additionally enter a redundant second UPS; the shutdown is then deferred as long as one of the two is healthy. How that fits together is covered in the guide UPS redundancy with dual power supplies.
What works with a NAS that runs no Windows
A Synology, QNAP or TrueNAS does not speak WinRM. The UPS Hyper-V Shutdown Monitor does not shut such devices down directly; extra servers are Windows targets only, and there is no SSH or script path. The NAS therefore needs its own shutdown logic, and you align the two. Three approaches that work in practice:
- NAS as a NUT client — if a NUT server runs on the network, for example on a firewall or a Linux box, the NAS and UPSmonitor both poll that server. Synology DSM, QNAP QTS and TrueNAS ship a NUT client for this (vendor documentation, as of October 2026). Often it is the other way round: the NAS holds the UPS over USB and acts as the NUT server, and UPSmonitor is the client. Both variants are in the guide NUT on Windows.
- The NAS's own UPS logic — the NAS polls the UPS directly over USB or its network card via SNMP and shuts down by its own rules. In that case the NAS threshold must trigger later than the hosts' threshold, or case 01 from section 01 occurs. Which threshold the NAS offers is up to its firmware, usually a battery percentage or a fixed time after going on battery.
- NAS deliberately as the last link — if the NAS is only a backup target, it can run until the battery is empty. Copy-on-write file systems such as ZFS and Btrfs are designed so that a power loss leaves the last consistent state on disk; whatever was still in the write cache is gone, and this is not a vendor promise for your device. For a backup target that nobody writes to during an outage, the risk is manageable; for VM storage it is not.
A Windows server used as storage, by contrast, is an ordinary extra server and sits in the last stage as in section 03.
Reverse order when power returns
On start-up the order is mirrored: storage first, until the shares are reachable, then the Hyper-V hosts with their VMs, and the backup server last. The software starts no servers; that is the job of the BIOS setting, the VMs' start delay and, where needed, Wake-on-LAN, see Restarting after a power outage. When mains return, the monitor re-arms itself and records that in the log.
Checklist for extra servers and storage
- Every machine on the UPS covered — each Windows server on the UPS is entered as a Hyper-V host or extra server; the NAS has its own UPS client.
- WinRM tested — “Test” returns the PowerShell version for every extra server; the account has the right to shut the target down.
- Order set — hosts before backup before storage; servers with the same value run in parallel on purpose.
- Delays staggered — storage has a longer shutdown delay than the hosts, because the next stage does not wait for power-off.
- Early shutdown checked — servers with their own threshold sit above the global threshold, and the UPS reports a runtime.
- NAS threshold later than hosts — the NAS shuts down only when the hosts no longer need its shares.
- Local machine not an extra server — use “Shut down local machine” on the Service tab instead.
- Test mode run — history and log show every stage with all targets; then one real shutdown in a maintenance window.
Frequently asked questions
Can the UPS Hyper-V Shutdown Monitor shut down a Synology or QNAP NAS directly?
No. Extra servers are addressed exclusively via WinRM and shutdown.exe, which means Windows systems. A NAS shuts down through its own UPS client: as a NUT client on the same NUT server, via USB, or via SNMP directly from the UPS. The software then does not see the NAS; you coordinate the two through their thresholds.
What happens to an extra server without a UPS assignment when one of two UPS units fails?
It is shut down as well. Without an assignment, an extra server is treated as belonging to every UPS; that is the fail-safe default. Only an explicit assignment to one UPS (Pro) restricts it to that UPS.
Does the software wait until the file server is really off before the next stage starts?
No. An extra server counts as done as soon as shutdown.exe has accepted the command; a Hyper-V host as soon as its VM phase is complete and the host command has been sent. The next stage then starts immediately. You control the time gap with the shutdown delay of each target.
Does early shutdown trigger if the UPS reports no runtime?
No. The individual threshold is only evaluated against a reported runtime. If the UPS reports no value, the server stays in the global sequence. The UPS must also be on battery, and the threshold must be undercut for as many consecutive polls as the repeated confirmation requires.
More guides
Shutting down Hyper-V VMs in a power outage
Stop action, shutdown order and time budget for an orderly shutdown.
UPS redundancy with dual power supplies
Two feeds per host: shut down only when both UPS units are critical.
Calculating UPS runtime
Why the datasheet runtime rarely holds.
Restarting after a power outage
Starting servers, storage and VMs automatically when power returns.
NUT on Windows
Query a UPS via Network UPS Tools from a NAS or Linux server.
UPS shutdown via PowerShell script
Ten weak spots that only show up in a real outage.
SQL Server & Exchange on Hyper-V
Protecting databases during a power outage.
Hyper-V failover cluster power outage
Coordinating quorum, CSV and live migration.
Monitoring UPS units from multiple vendors
One tool instead of several silos.
UPS monitoring without shutdown
Monitor and alert without shutting anything down.
Every server on the UPS in one order
30 days free, every feature included. Hyper-V hosts and Windows servers without Hyper-V in one shutdown order, early shutdown per server, and a test mode without a real outage.