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

Tiago Stapenhorst Martins picture Tiago Stapenhorst Martins · Oct 22, 2018 · Viewed 9.4k times · Source

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?

Answer

wysiwyg picture wysiwyg · Nov 13, 2018

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