Create Automatic Windows Service - NSSM
Create Automatic Windows Service - NSSM
• Test your script: Ensure script runs correctly from the command line.
2. Install NSSM:
• Download the latest NSSM installer from the official website: NSSM - the Non-Sucking
Service Manager
• Recovery options: Configure how the service should recover from failures.
• Log on as: Configure the user account under which the service will run.
• Open the Services console (Start menu -> Administrative Tools -> Services).
Additional Check:
• Error Logging: Configure your script to log errors to a file or send notifications via email or
other means.
• Service Recovery: Set up appropriate recovery actions, such as restarting the service or
sending notifications.
• Security: Ensure the service account has the necessary permissions to run the script and
access required resources.
• Testing: Thoroughly test the service to ensure it starts, stops, and restarts correctly.
Open msconfig -> startup -> make sure service is enabled at startup