Overview
I recently came across a frustrating issue when looking at ULS logs for a client with a SharePoint 2010 installation.  We were seeing huge numbers of repeated errors stating :

Performance Counter OS (pdh) call failed with error code PDH_CSTATUS_BAD_COUNTERNAME.

PDH failure on counter \<servername>\Sandboxed Code Process Pool\\Processes Stopping with error Unknown error (0xc0000bc0)

Unable to create system […]
Blog Post by: Michael Gerety