Archive | PowerShell RSS for this section

Enable Developer Dashboard

In order to enable the Developer Dashboard you can use the following powershell script:


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

$devboard = [Microsoft.SharePoint.Administration.SPWebService]::
ContentService.DeveloperDashboardSettings

$devboard.DisplayLevel = "On"

$devboard.RequiredPermissions = [Microsoft.SharePoint.SPBasePermissions]::FullMask

$devboard.TraceEnabled=$true

$devboard.Update()

You can change the third line depending on if you want the dashboard to be always on, off or on demand. If it is on demand the user has to press the developer dashboard icon in the top right corner to enable the dashboard for that given page.


$devboard.DisplayLevel = "On"

$devboard.DisplayLevel = "Off"

$devboard.DisplayLevel = "OnDemand"

In addition to just enabling the developer dashboard you can also customize what permission level a user has to have to be able to use the dashboard. The value used here ensures that it will only be available for administrators


$devboard.RequiredPermissions = [Microsoft.SharePoint.SPBasePermissions]::FullMask

So go out, use the developer dashboard and make sure you gain control of your environment 🙂

Advertisements