Someone was trying to manually install a windows service earlier this week and I found an old document I had written a year or so ago with instructions on how I did this before using SC.exe. I thought i’d post it on here for future reference.
Installing a service
sc create "My Service name" binPath= "c:\MY_FOLDER\MyService.exe"
Deleting a service
sc delete "My Service name"
Querying a service
sc query "My Service name"