Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check a list of all services created by NSSM (non sucking service manager)?

Okay, I have created some services in Windows 7 through NNSM (Non-Sucking Service Manager) but now I don't know their service names anymore and I want to edit/remove them.

How can I find a list of the services installed through NSSM?

like image 794
Tiago Stapenhorst Martins Avatar asked Oct 22 '18 18:10

Tiago Stapenhorst Martins


People also ask

What is Nssm EXE used for?

Nssm.exe launches the Non-Sucking Service Manager program. This is not an essential Windows process and can be disabled if known to create problems. NSSM is a free utility that manages background and foreground services and processes. The program can be set to automatically restart failing services.

Can't open service Openservice (): Access is denied Nssm?

Resolution: Create local user. Ensure local user has rights to run as a service (https://docs.microsoft.com/en-us/system-center/scsm/enable-service-log-on-sm?view=sc-sm-2019) - Local Group Policy. Have the nssm.exe ALSO accessible by the created user.


Video Answer


2 Answers

Every service added through NSSM, points to nssm.exe in the "Path to executable". You can see this in the Services MMC snap-in by right-clicking a service and choosing "Properties".

Run the following in Powershell to get a list of all services with "nssm" in the PathName (Based off this answer: https://stackoverflow.com/a/24449854/7470843)

Get-WmiObject win32_service | ?{$_.PathName -like '*nssm*'} | select Name, DisplayName, State, PathName
like image 113
wysiwyg Avatar answered Oct 07 '22 14:10

wysiwyg


Recently had the very same question, turns out the creator built this functionality in over 3 years ago: https://git.nssm.cc/nssm/nssm/commit/1f0b03b38f7d76814d1c7c627f64462362100223

Looks like he was targeting this for the 2.25 release version, so it's missing in most of the documentation on the website and the built-in help.. but if you are running a more recent 2.24 pre-release, just nssm list gets it done.

like image 20
fredless Avatar answered Oct 07 '22 15:10

fredless