Microsoft KB Archive/886014

= The Agent Host service cannot be stopped when you use Terminal Services to log on to a Windows 2000-based computer that is running the SMS 2003 Advanced Client =

Article ID: 886014

Article Last Modified on 6/13/2005

-

APPLIES TO


 * Microsoft Systems Management Server 2003

-



Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
You are using Microsoft Windows Terminal Services to log on to a Microsoft Windows 2000-based computer that has the Microsoft Systems Management Server (SMS) 2003 Advanced Client installed. When you try to manually stop the SMS 2003 Agent Host service (Ccmexec.exe), the SMS 2003 Agent Host service may not stop.

For example, this problem occurs if you type net stop ccmexec at the command prompt or if you install an update that requires the SMS Agent Host service to restart.

Additionally, you may see many entries that are similar to the following in the Ccmexec.log file:

<![LOG[Failed to find running shell process]LOG]!>

The Ccmexec.log file is located in the WINNT\System32\CCM\Logs folder on the Advanced Client computer.



CAUSE
This problem occurs when all the following conditions are true:
 * You use Terminal Services to log on to the Windows 2000-based computer that has the Advanced Client installed.
 * You try to stop the Ccmexec.exe process within 15 minutes of logging on to the Terminal Services session.

When you use Terminal Services to log on to a Windows 2000-based computer that has the Advanced Client installed, the Ccmexec.exe process tries to access your account token as soon as the Terminal Server session starts. If the Ccmexec.exe process cannot access the account token immediately, the process continues to try for 15 minutes. However, if you try to stop the Ccmexec.exe process within the 15-minute retry period, and the Ccmexec.exe process is still trying to access the account token, the SMS Agent Host service may stop responding.



WORKAROUND
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To work around this problem, add a registry key to control the time-out period for account token access. To do this, follow these steps:

Important Follow these steps only on Windows 2000-based computers that are running Terminal Services and that are experiencing the problem that is described in the &quot;Symptoms&quot; section.  Click Start, click Run, type regedit, and then click OK. Locate and then right-click the following registry subkey:

HKEY_LOCAL_MACHINE\Software\Microsoft\CCM\CcmExec

 Click New, and then click DWORD. Type Shellwaittime for the new DWORD name, and then press ENTER. Right-click Shellwaittime, and then click Modify. In the Edit DWORD Value dialog box, click Decimal, enter a value in minutes in the Value data field, and then click OK.

Note The value can be from 0 through 43,200 minutes. For example, when you enter 5 minutes, the Ccmexec.exe process will try to access the user account token for 5 minutes.</ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Additional query words: Advanced client CCMexec

Keywords: kbprb kbpending kbbug KB886014

-

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

© Microsoft Corporation. All rights reserved.