View Full Version : Question about creating a service
NewsArchive
04-28-2011, 12:39 AM
When creating a service, I am trying to create the service with a username
and password.
I cannot get that to work. Without a username and password it works every
time.
The user account exists prior to service creation.
What could I be doing wrong?
Donald Ridley
NewsArchive
04-28-2011, 12:39 AM
Nevermind... I did not have the username formatted properly.
Has to be: ".\username" not just "username."
Cool!
Thanks!
Don
NewsArchive
04-28-2011, 12:40 AM
Okay, got the service installing but not starting because the user does not
have "log on as service rights..."
Don
NewsArchive
04-28-2011, 01:47 AM
Don,
> Okay, got the service installing but not starting because the user does
> not have "log on as service rights..."
I think the following is an interesting reading:
http://support.microsoft.com/kb/315276
The "ntrights.exe" file will set a policy for the "SERVICE_USER" user which
will allow him to log on as a service:
ntrights.exe -u SERVICE_USER +r SeServiceLogonRight
If you want to revoke this privilege (e.g. in your custom uninstall script),
you can use:
ntrights.exe -u SERVICE_USER -r SeServiceLogonRight
Friedrich
NewsArchive
04-29-2011, 01:22 AM
Hey Friedrich....
Will not work on 64bit systems... :-(
Don
NewsArchive
04-29-2011, 01:22 AM
>
> Will not work on 64bit systems... :-(
>
Yes, that's correct. The Windows Server 2003 Resource Kit Tools are not
supported on 64-bit platforms.
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.