|
Create a windows service from an executable |
|
|
|
|
Wednesday, 19 November 2008 11:20 |
|
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.
|