30

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?

2 Answers 2

44

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
1
  • I'm using Windows 10 Version 10.0.19043 Build 19043 and PowerShell v7.2.7 and I can no long user Get-WmiObject, instead I have to use the Get-CimInstance command. Get-CimInstance win32_service | ?{$_.PathName -like '*nssm*'} | select Name, DisplayName, State, PathName
    – beeThree
    Commented Nov 21, 2022 at 18:47
17

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.

4
  • 3
    This command is not available in the current stable versions of NSSM. Commented Feb 19, 2020 at 20:40
  • 1
    I used nssm list and it worked great! Thanks.
    – paulz
    Commented Feb 4, 2021 at 4:31
  • I'm using nssm 2.24-103-gdee49fc and nssm list does nothing despite having a service running.
    – what the
    Commented Apr 10, 2022 at 0:25
  • Seems 2.25 was never publicly released... Someone compiled it tho here. DYOR: github.com/kirillkovalenko/nssm/issues/…
    – bradvido
    Commented Jul 29, 2022 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.