Windows

Installation

Stable release installation packages can be found here:

Then start the .msi installer and follow the instructions.

MSI Installer

Firewall

The Windows .msi package will add the firewall exceptions automatically. If you need to reinstall the firewall exceptions, you can run this command:

C:\Program Files\snclient> .\snclient.exe install firewall

If you don’t need the exceptions anymore, there is an uninstall command as well:

C:\Program Files\snclient> .\snclient.exe uninstall firewall

MSI Installation Parameters

Running the .msi installer manually lets you choose some basic options. The idea here is to set the ports, so the following firewall setup will know which ports to open.

All additional options should go into a local custom INI file which can be provided during installation as well.

Running the MSI installer from the terminal with msiexec.exe exposes these options as public properties.

For example:

msiexec.exe /i snclient.msi /l*V snclient_installer.log /qn PASSWORD="test" INCLUDES="https://company.local/snclient_local.ini"

This installs the MSI package and logs everything to the snclient_installer.log file. It also sets the initial password and includes an INI file fetched over HTTPS.

Here is a table of all available properties:

PropertyDefault ValueDescription
INSTALLDIRC:\Program Files\snclientSet a custom install location.
INCLUDESAdds include files to the /Includes section.
ALLOWEDHOSTS127.0.0.1, ::1Sets the ‘allowed hosts’.
PASSWORDCHANGEMESets the password (will be written to the .ini encrypted).
WEBSERVER1Enable/Disable the REST web server.
WEBSERVERPORT8443Set the port for web server.
WEBSERVERSSL1Enable/Disable TLS/SSL for the web server.
NRPESERVER0Enable/Disable the NRPE server.
NRPESERVERPORT5666Set the port for NRPE server.
NRPESERVERSSL1Enable/Disable TLS/SSL for the NRPE server.
PROMETHEUSSERVER0Enable/Disable the Prometheus web server.
PROMETHEUSSERVERPORT9999Set the port for the Prometheus web server.
PROMETHEUSSERVERSSL0Enable/Disable TLS/SSL for the Prometheus web server.

To install SNClient automatically into a custom folder, use the following command:

msiexec.exe /i snclient.msi /qn INSTALLDIR="D:\Apps\snclient"

Uninstall

To uninstall SNClient, run the snclient.msi installer again. If the installer has the same version as the installed one, it will offer an uninstall option.

Another way is to use the Windows software center and uninstall the agent from there.