Skip to content

Instantly share code, notes, and snippets.

@glombard
Created November 28, 2013 13:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save glombard/7691571 to your computer and use it in GitHub Desktop.
Save glombard/7691571 to your computer and use it in GitHub Desktop.
Create a fake Windows Service to fool another program to think the service is already installed... In this case I'm creating the SNMP service to point to the Notepad executable.
New-Service -Name 'SNMP' -BinaryPathName 'C:\windows\notepad.exe' -DisplayName 'Fake SNMP Service' -StartupType Manual
@PatrickNgoNg
Copy link

but this service is not able to start, isn't it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment