Installation
Using the pre-built, standalone app
The pre-built binaries are available from the releases page.
Download the Windows binary
"Unblock" the downloaded zip file
- Right-click the zip file
- Select "properties"
- Mark the "Unblock" check box in the lower right part of the properties window
- Click the "Apply" button, then "Ok" to close the properties window
Unzip the zip file
Move the extracted
butler-sos.exefile to desired location, for exampled:\tools\butler-sosInstall Butler SOS as a Windows service, so that it starts with the server and is restarted if it stops:
powershell.\butler-sos.exe --install-service -c d:\tools\butler-sos\config\production.yaml --on-invalid-config waitSee Windows service for what it does, how to remove it, and how to run several Butler SOS services on one server.

Unblocking the Butler SOS zip file on Windows Server
Configuration
The configuration file is used the same way as when Butler SOS runs on Docker, with one exception:
The path to the certificates used to authenticate with Sense must be specified in the config file. With Docker the certificate path is always the same, but with Windows you need to specify where the certificate files are located.
For example, if the certificate files exported from Sense are stored in d:\secrets\sensecert, the config file would look like this when used on Windows:
...
# Certificates to use when querying Sense for healthcheck data. Get these from the Certificate Export in QMC.
cert:
clientCert: d:\secrets\sensecert\client.pem
clientCertKey: d:\secrets\sensecert\client_key.pem
clientCertCA: d:\secrets\sensecert\root.pemStayin' alive
A tool like Butler SOS should of course start automatically when the server it runs on is restarted. This can be achieved in at least a couple of ways:
By far the best option is to turn Butler SOS into a Windows service. That way it will be started on server boot, restarted if it fails etc. From version 15.4.0, Butler SOS installs its own service with
--install-service: see Windows service. On earlier versions, use a tool such as NSSM, as Butler SOS has been installed in lots of Sense environments.You can also use a Node process monitor such as PM2 to monitor the Butler SOS process, and restart it if it for some reason crashes. PM2 is not entirely easy to use on Windows though.