#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()
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