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?
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.
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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With