# Jenkins-As Window Agent

The easiest way to set up Jenkins node (slave) as a service is to use [https://nssm.cc/](https://nssm.cc/)

Direct Download Link : https://nssm.cc/release/nssm-2.24.zip

Offline Download : - [nssm-2.24.zip](https://krishnaaka.online/attachments/7)

1. Unzip the nssm into `C:\` drive
2. Run command 
    1. cd C:\\Windows\\System32\\cmd.exe
    2. nssm.exe install "NameOfAgent"
3. In the pop-up, you can give a path to `startagent.bat` available in Jenkins

You can also configure user you want to use for running jenkins jobs.

[![image.png](https://eu2.contabostorage.com/66dddabd753e470297bef6533e98fb71:bookstack/uploads/images/gallery/2025-01/scaled-1680-/image.png)](https://eu2.contabostorage.com/66dddabd753e470297bef6533e98fb71:bookstack/uploads/images/gallery/2025-01/image.png)