Microsoft KB Archive/264697

= SMSINST: Create Service Script Action Does not Grant Log on as a Service Right =

Article ID: 264697

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Service Pack 5

-



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 &quot;Log on as a service&quot; right.



WORKAROUND
To grant the &quot;Log on as a service&quot; 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 &quot;Log on as a service&quot; right.

Windows 2000
Use the steps provided in the &quot;How to Configure User Rights&quot; 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 &quot;Log on as a service&quot; 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

Additional query words: prodsms

Keywords: kbprb KB264697

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.