SharePoint 2010, PowerShell ISE, and Developer Dashboard

To get my developer mchines ready for developing, customization, configuration and administration I have to go through the steps to automatically load the sharepoint powershell commands when starting PowerShell ISE, and get the developer dashboard ready:

Load SharePoint 2010 commandoer everytime I start PowerShell ISE:

Enable the Developer Dashboard:

  • $contentservice = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
  • $devdash =$contentservice.DeveloperDashboardSettings
  • $devdash.DisplayLevel =[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand
  • $devdash.Update()

No comments: