You are currently offline, waiting for your internet to reconnect

UserCode service fails to start because a performance counter call fails with an error code 'PDH_CSTATUS_NO_MACHINE'

SYMPTOMS
On a server that is running Microsoft SharePoint Foundation 2010 or SharePoint Server 2010, you try to start the UserCode service (SPUserCodeService). The UserCode service does not start on this server because a performance counter call fails, and you receive the following error code in the ULS logs:

PDH_CSTATUS_NO_MACHINE
CAUSE
This issue occurs when the user account under which SPUserCodeService is configured to run does not have the necessary permissions to access the performance counters on the Windows 2008 server.
WORKAROUND
To work around this issue, verify that the user account under which SPUserCodeService is configured to run has permissions to access the performance counters. To do this, add the user account to the 'Performance Monitor Users' and 'Performance Log Users' group and grant the following permissions:

Performance Monitor Users (<Machine_Name>\Performance Monitor Users): Read & Execute Read
Performance Log Users (<Machine_Name>\Performance Log Users): Read & Execute Read

For a list of features that are accessible to the 'Performance Monitor Users' and 'Performance Log Users' group, please see
Overview of Windows Performance Monitor

For more information, please see SharePoint 2010: Sandboxed Code Service is failing to start
Properties

Article ID: 983081 - Last Review: 04/10/2012 19:04:00 - Revision: 7.0

Microsoft SharePoint Foundation 2010, Microsoft SharePoint Server 2010

  • kbprb kbsurveynew kbpubtypekc kbexpertiseadvanced kbservice KB983081
Feedback
body>