Create a Service from an Application

Today I needed to create a service on a remote computer that will run when the user has logged out and this is how I did it using the SC command:


sc \\<computername> create <ServiceName> binPath= “c:\Program Files\<full local path>.exe” type= own start= auto displayname= <DisplayName>¬†error= normal


I used this article to help me:

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.