powershell 开启开发人员仪表盘

$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$dashboardSetting = $contentService.DeveloperDashboardSettings
$dashboardSetting.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On
$dashboardSetting.Update()
原文地址:https://www.cnblogs.com/denglinhai/p/sharepoint2010_powershell_1.html