Tuesday, January 5, 2010

Set developer dashboard level with PowerShell

To set the developer dashboard level with PoweShell, open the SharePoint 2010 Management Shell Console and run this lines.

#SPDeveloperDashboardLevel is On, Off or OnDemand
$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$contentService.DeveloperDashboardSettings.DisplayLevel = ([Enum]::Parse([Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel], 'OnDemand'))
$contentService.DeveloperDashboardSettings.Update()

Relate post “SharePoint 2010 - Developer dashboard

No comments:

Post a Comment