31 lines
1.3 KiB
Markdown
31 lines
1.3 KiB
Markdown
# Install Beszel Agent As Service Under Windows
|
||
|
||
The Windows *cmd* file `install-beszel-service.cmd` installs the [Beszel](https://beszel.dev) agent as a service under Microsoft Windows.
|
||
|
||
## Prerequisites
|
||
|
||
- Microsoft Windows 10 or later (32 or 64 bit)
|
||
- Git installed
|
||
|
||
If you don´t have Git installed, either
|
||
|
||
- install Git with Winget: `winget install git.git` or
|
||
- download and extract the ZIP file from [Releases](https://gitea.elpatron.me/elpatron/Install-Beszel-Agent/releases/).
|
||
|
||
## Usage
|
||
|
||
Open a `cmd.exe` shell with **administrative rights**.
|
||
|
||
````
|
||
git clone https://gitea.elpatron.me/elpatron/Install-Beszel-Agent
|
||
cd Install-Beszel-Agent
|
||
.\install-beszel-service.cmd <your Beszel ssh key>
|
||
````
|
||
|
||
## Explanation
|
||
|
||
The script copies `agent.exe` into the directory `%ProgramFiles%\BeszelAgent` and takes usage of *[NSSM - the Non-Sucking Service Manager](https://nssm.cc/)* to install the service. If *NSSM* is not yet installed on your system, it will be downloaded and installed to the Beszel agent directory.
|
||
|
||
The provided `agent.exe` was compiled on January, 17th 2025 by me and should be exchanged by a self compiled or official executable.
|
||
|
||
For more details, see [*Using Beszel to monitor Windows*](https://blog.ktz.me/using-beszel-to-monitor-windows/) by Alex Kretschmar. |