Powershell to Enable SharePoint 2010 Developer Dashboard

Today’s post is just a simple Powershell script to enable the Developer Dashboard:

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

See you,
Amadeu.