Are you looking to for your Windows services?
.\nssm.exe set ElevationTest Application "cmd.exe /c echo SYSTEM LEVEL > C:\ProgramData\poc.txt" nssm-2.24 privilege escalation
Furthermore, specific to NSSM 2.24, the tool allows the modification of the AppParameters or Application registry keys (located at HKLM\SYSTEM\CurrentControlSet\Services\ServiceName\Parameters ) without strict integrity checks if the attacker has sufficient privileges to modify the service configuration (often achievable via standard user rights if service permissions are misconfigured). Are you looking to for your Windows services
: Used NSSM to make traffic tunneling tools (e.g., Localtonet) persistent on compromised business automation servers. specific to NSSM 2.24