create new service server 2003

September 29, 2010

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.