This is a powershell script that will enable the developer console on a sharepoint farm:
$consoleSettings =[Microsoft.Sharepoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings
$consoleSettings.DisplayLevel =
"OnDemand"
$consoleSettings.RequiredPermissions =
"EmptyMask"
$consoleSettings.TraceEnabled = $
true
$consoleSettings.Update()
Short but sweet, now once you visit your SharePoint site you will see a diagnostics icon next to your username on the top bar. In case you receive errors saying that PowerShell could not find the type Microsoft.Sharepoint.Administration.SPWebService, load the SharePoint dll using following command:
[
void
][System.Reflection.Assembly]::LoadWithPartialName(
"Microsoft.SharePoint"
)
This article is also available in the following languages:
Richard Mueller edited Revision 7. Comment: Removed (en-US) from title, added tag
yottun8 edited Revision 5. Comment: Added the ja-JP link.
Luigi Bruno edited Revision 4. Comment: Fixed a link in the "Other Languages" section.
Luigi Bruno edited Revision 3. Comment: Added the "How To" tag.
Luigi Bruno edited Revision 2. Comment: Added the "Other Languages" section. Added the "Multi Language Wiki Articles" tag.
Luigi Bruno edited Revision 1. Comment: Edited article's title. Added the "How To" Wiki Message Template.
Craig Lussier edited Original. Comment: added en-US to tags and title
Richard Mueller edited Revision 8. Comment: Replace RGB values with color names in HTML to restore colors