Error 2140 When Starting Service With Parameters

Last reviewed: September 18, 1995
Article ID: Q136711
The information in this article applies to:
  • Microsoft Windows NT Resource Kit versions 3.5 and 3.51

SYMPTOMS

The following message appears when you attempt to manually start a service from Control Panel Services by selecting the service and specifying values in the Startup Parameters field:

   Could not start the <service_name> service on \\<server_name>.

   Error 2140:  An internal Windows NT error occurred.

This error typically occurs in conjunction with SRVANY.EXE, included in the Windows NT 3.5 Resource Kit.

CAUSE

This error results from an attempt to start a service with incorrect Startup Parameters. Most default Windows NT services do not use the Startup Parameters field so this error is uncommon.

RESOLUTION

Verify that you are using the appropriate Startup Parameters for the service you are attempting to start. To pass startup parameters to a service, select the service, type the parameters in the Startup Parameters field, and then choose the Start button.

SRVANY.EXE requires that you type in the full command-line, including the application name and parameters associated with your service. Fully- qualified path names should be used when specifying the application.

Note: Backslashes are treated as an escape character. You must type two backslashes for each backslash in a parameter. For example:

   D:\\BINP\\B.EXE C:\\TMP\\MYEXE

For additional information on SRVANY.EXE read SRVANY.WRI included in the Windows NT 3.5 and 3.51 Resource Kits.


Additional reference words: prodnt 3.50 3.51 start-up automatic logon
KBCategory: kbtool kberrmsg
KBSubCategory: nt16ap nt32ap ntboot ntutil


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 18, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.