Activate Developer Dashboard

04/10/2012 11:54

#If this script doesn't work, start Sharepoint Web Services application pool

 

#Load assemblies (if sharepoint snappin is not loaded)

[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint")

[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint.Administration")

 

#There are more options for DislpayLevel: Off, OnDemand, On

$srv = [Microsoft.SharePoint.Administration.SPWebService]::ContentService

$setting =$srv.DeveloperDashboardSettings

$setting.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand

$setting.Update()

 

link:

https://en.hugon.ws/articles/sharepoint-2010/using-the-developer-dashboard/