Wednesday, 12 November 2014

How to enable Developer Dashboard in SharePoint

#add snnapin if not


if((Get-PSSnapin Microsoft.SharePoint.Powershell) -eq $null)
{
    Add-Pssnapin Microsoft.SharePoint.Powershell
}


#enable developer dashboard SpDeveloperDashboardLevel = On


$services = [Microsoft.SharePoint.Administration.Spwebservice]::ContentService
$addsettings = $services.DeveloperDashboardSetting
$addsettings.DisplayLevel = [Microsoft.SharePoint.Administration.SpDeveloperDashboardLevel]::On
$addsettings.Update()

No comments:

Post a Comment