Turn on/off/ondemand Developer Dashboard of SharePoint 2010 using Powershell

Honestly, I personally prefer using Powershell than the old traditional Command Prompts. (no offense to those CMD lovers =X ). It will come to this day where you are asked or required to trace the performance of your SharePoint site. Fortunately, SharePoint 2010 comes with OOTB Developer Dashboard which allows you to track the response times of each of your module within a page.

It is not turned on by default, and here is the tricks to turn it on.

Simply execute the following Powershell Script.

[sourcecode language=”powershell”]
$dds = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings
$dds.DisplayLevel = "On";
#"Off" to turn it off, or "OnDemand" to turn it on demand mode.
$dds.Update()

[/sourcecode]

If you turn it on as “OnDemand” mode, you shall see an icon  Sharepoint 2010 Developer Dashboardon the top right hand corner of your SharePoint page if you didn’t modify your master page. [To be specific, the Sharepoint:DeveloperDashboardLauncher web control]

2 thoughts on “Turn on/off/ondemand Developer Dashboard of SharePoint 2010 using Powershell

  1. Very awesome blog !! I couldnt have wrote this any better than you if I tried super hard hehe!! I like your style too!! it’s very unique & refreshing…

  2. What a very informative site, I have found alot of very useful information here and still have a lot more to read. Thank you very much for the time and effort you have put in….

Leave a Reply

Your email address will not be published. Required fields are marked *