create new service server 2003

To create a new service in server 2003 or xp you use the sc.exe tool.

REMEMBER TO ADD A SPACE AFTER EVERY EQUAL SIGN!!!! THIS IS VERY IMPORTANT!

sc create "my service" binPath= "c:\myfile.exe" type= "own" start= "auto" DisplayName= "my service" error= "normal"

Obviously replace “my service” with whatever you want to call the service and “myfile.exe” with the file you’d like to make a service.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.