Enable:-
$devdash = [Microsoft.SharePoint. Administration.SPWebService]:: ContentService. DeveloperDashboardSettings;
$devdash.DisplayLevel = “OnDemand”;
$devdash.TraceEnabled = $false;
$devdash.Update()
Disable :-
$devdash = [Microsoft.SharePoint. Administration.SPWebService]:: ContentService. DeveloperDashboardSettings;
$devdash.DisplayLevel = “Off”;
$devdash.TraceEnabled = $true;
$devdash.Update()
No comments:
Post a Comment