Created
November 28, 2013 13:07
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-Service -Name 'SNMP' -BinaryPathName 'C:\windows\notepad.exe' -DisplayName 'Fake SNMP Service' -StartupType Manual |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
but this service is not able to start, isn't it ?