Getting Started with Adobe After Effects - Part 6: Motion Blur
A collection of quick technology learning tips from what people around you learn every day

Windows Service Installation with a Service User Account

Mar 11 2012 12:00AM by Manas Ranjan Dash   

While installing a windows service I wrote this command in my installation script (not using the installutil.exe) and used a service user account.

SC.EXE create MyService 
	binPath= "%CD%\MyService.exe" 
	start= auto 
	obj= "domain\Myserviceuser" 
	Password= "AbcD12345" 
	DisplayName= "My Service" 

SC.EXE DESCRIPTION MyService  "My Alert Service" 
NET START MyService

During installation I got the below error and the service failed to start though it got installed.

System error 1069 has occurred. The  service  did not start due to a logon failure.

When I added the username and password manually to the service and started it manually it worked fine.

Then I modified the installation script and added the following command before creating the service which worked fine in installing and starting the service from the package itself.

ntrights.exe -u Myserviceuser +r SeServiceLogonRight

This command grants the Logon as a service rights to the user.

Read More..   [38 clicks]

Published under: Microsoft .NET Tips ·  ·  ·  · 


Manas Ranjan Dash
39 · 5% · 1484
9
 
0
Knew
 
 
0
Incorrect
 
0
Interesting
 
0
Forgotten



Submit

Your Comment


Sign Up or Login to post a comment.

"Windows Service Installation with a Service User Account" rated 5 out of 5 by 9 readers
Windows Service Installation with a Service User Account , 5.0 out of 5 based on 9 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]