Create a windows service from an executable

Create a windows service from an executable

Create a windows service from an executable 150 150 Roderick Derks

Prequisits
w2003 resourcekit tools installed

Install the service
C:\>sc.exe create T3NawUp dateService binPath= “C:\Program Files\Infotrom\Trodis3\MT\Binaries\T3NawUpdateService.exe – /L2” obj= “elisabeth\sa_trodis” password= “paszzworrd”
[SC] CreateService SUCCESS

Logon as a service right on the server when yourun the service on a specific windows account
Start > Run – Enter the gpedit.msc command and run.
Select the Computer configuration setting from the appearing window then go through the following path:
Windows settings > Security settings > Local Policies > User Right Assignment
Select the Log on as a service item from the right side list then double click on it (or right click > select Properties from the
local menu). Add the desired user account by clicking on the |Add user or group…| button.

Roderick Derks

Liefhebber van fietsen, van het oplossen van IT puzzels, en van het delen van informatie om anderen te helpen.

All stories by:Roderick Derks

Leave a Reply

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

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

      Your Name (required)

      Your Email (required)

      Subject

      Your Message