DOCUMENT:Q264663 08-AUG-2001 [winnt] TITLE :SC.EXE Command Returns Error: ChangeServiceConfig Failed, rc = PRODUCT :Microsoft Windows NT PROD/VER:winnt:4.0 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Windows NT Server version 4.0 ------------------------------------------------------------------------------- SYMPTOMS ======== When you run the following command from the command prompt: "SC CONFIG TASKMANAGER OBJ= domain\user PASSWORD= password" (without the quotation marks) you may receive the following error message: ChangeServiceConfig Failed, rc = 87 CAUSE ===== The issue can occur when the service has been previously set to interact with the desktop under the LocalSystem account. If the service is configured to interact with the desktop, you cannot change the service to run under a domain user account. RESOLUTION ========== Add the parameter "type= own" to the command as in the following example: "SC CONFIG TASKMANAGER OBJ= domain\user PASSWORD= password TYPE= own" (without the quotation marks) MORE INFORMATION ================ SC.exe is a command line utility that is included in the Microsoft Windows NT Server 4.0 Resource Kit and the Microsoft Win32 Software Development Kit. SC.exe implements calls to all of the Windows NT service control application programming interface (API) functions. It allows you to set the parameters to these functions by specifying them on the command line. You can use SC.exe to display service status and to retrieve the values stored in the status structure fields, providing more detailed and accurate information about services than you receive through the end-user utilities provided with the Windows NT 4.0 operating system. For a complete description of the use and capabilities of the SC.exe utility, refer to the file Sc-dev.txt, which is included in the Windows NT Server 4.0 Resource Kit. Additional query words: ====================================================================== Keywords : Technology : kbWinNTsearch kbWinNT400search kbWinNTSsearch kbWinNTS400search kbWinNTS400 Version : winnt:4.0 Issue type : kbprb ============================================================================= 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. Copyright Microsoft Corporation 2001.