SrvAny
This thing is great because it lets you run notepad as a service so you can stop and start it when testing service monitoring in SCOM. Stopping can be dodgy so just kill the process.
Note: The old srvany.exe and instsrv.exe from the Win 2003 resource kit are hard to find now.
Install a service
Download SrvAny.zip and extract contents.
Open admin PowerShell and type this command to run notepad as a service (path may vary depending on OS version):
SrvAny.exe -install ServiceShortName 1 c:\windows\notepad.exe
I don't know what the 1 does but you need it. Set the service to auto start and you're done.
Remove a service
SrvAny.exe -remove ServiceShortName
Comments
Post a Comment