SMSINST: Create Service Script Action Does not Grant Log on as a Service Right (264697)



The information in this article applies to:

  • Microsoft Systems Management Server Installer 2.0

This article was previously published under Q264697

SYMPTOMS

After using the script action, Create Service, in SMS Installer to install a service to run under a specific user account, the service is unable to start, and the following two errors are generated in the application event log:
Event ID: 7013
Source: Service Control Manager
Description: Logon attempt with current password failed with the following error:
Logon failure: the user has not been granted the requested logon type at this computer.

Event ID: 7000
Source: Service Control Manager
Description: The ServiceName service failed to start due to the following error:
The service did not start due to a logon failure.

CAUSE

The user account specified in the Login Username box for the Create Service script action does not have the "Log on as a service" right.

WORKAROUND

To grant the "Log on as a service" right to the account being used to start the service, follow the appropriate method:

Windows NT 4.0

Open User Manager. On the Polices menu, click User Rights, click to select the Show Advanced User Rights check box, and then grant the service account in question the "Log on as a service" right.

Windows 2000

Use the steps provided in the "How to Configure User Rights" section of the following article in the Microsoft Knowledge Base:

259733 How to Troubleshoot Service Startup Permissions

MORE INFORMATION

You can automate the task of granting the service account the "Log on as a service" right by using the Microsoft Windows NT Resource Kit Utility Ntrights.exe in combination with the SMS Installer Execute Program script action. Use this utility to assign the service account the following right:

SeServiceLogonRight


Modification Type:MinorLast Reviewed:2/13/2006
Keywords:kbprb KB264697