Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@PatrickNgoNg PatrickNgoNg commented Jan 24, 2020

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