To enable Sharepoint Developer Dashboard in 2010, copy the below power shell script run in management console under Sharepoint Products

On Demand Mode:
$spDevDash = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$spDevDash .DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand;
$spDevDash .RequiredPermissions = ‘EmptyMask’;
$spDevDash .TraceEnabled = $true;
$spDevDash .Update();

On Mode:
$spDevDash = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$spDevDash .DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On;
$spDevDash .RequiredPermissions = ‘EmptyMask’;
$spDevDash .TraceEnabled = $true;
$spDevDash .Update();

Off Mode:
$spDevDash = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$spDevDash .DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::Off;
$spDevDash .Update();

Advertisements