Feeds:
Posts
Comments

Posts Tagged ‘enable’

Dear all,

the same way that you can Toggle the Developer Dashboard using STSADM.exe, you can also toggle it using PowerShell. It is slightly more complicated, but works just as fine and it’s also faster than the STSADM command. Let’s have a look:

$service = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$ddSettings =$service.DeveloperDashboardSettings
$ddSettings.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand
$ddSettings.Update()

What it does, is retrieving the content web service, then retrieve the service’s dashboard developer settings and setting their display visibility level. It can be set to either of these:

[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On
[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::Off
[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand

If you execute script, do it line by line or store them as a scripted .ps1 file before. There will be no success messages, but if you don’t get an error or warning from the PowerShell

Make sure you run these in a SharePoint Management Shell that you started with “Run as administrator”. Otherwise it will not work. Also, using the SharePoint Management Shell saves you from needing to add the SharePoint library using the Add-PSSnapin cmdlet. If  you should decide to open just a “normal” PowerShell command interface, make sure to execute the following:

Add-PSSnapin Microsoft.SharePoint.Powershell

Then run the above mentioned script, it should work fine. Please make sure to test any scripts before running them in a production environment. As usual, I cannot take responsability for any damage caused by scripts on this page. They are provided as-is. Adaptations could be necessary to make it run successfully.

Best regards and stay tuned till the next time!

Martin (currently enjoying the sun in Calabria!)

Advertisements

Read Full Post »

Dear all,

 

An error I ran recently across was the following. After creating a new SharePoint Server 2010 web application, I tried to activate the PerformancePoint Site Features. At first sight, everything seemed to be done in the correct order:

 

  • PerformancePoint Service Application running
  • Secure Store Service Application running
  • Connection for PPS and SSS to my web application
  • Site Collection created

 

I went on to my web application, then under:

Site Actions –> Site Settings –> Site Actions –> Manage site features

There I tried to activate the PerformancePoint Services Site Features. Tried. And failed. It failed with the following error messages:

 

image

 

So, the first message gave already a good hint. Off I went for the site collection features:

 

Site Actions –> Site Settings –> Site Collection Administration–> Site Collection Features

 

There, I had to enable both:

  • SharePoint Server Publishing Infrastructure and
  • PerformancePoint Services Site Collection Features

 

That did the trick! Now, returning to the site features, I was able to enable the PerformancePoint Services Site Features, and finally could create also KPIs, Scorecards and Dashboards.

 

image

More options for content creation after PerformancePoint Services have been enabled.

 

I hope this helps some of you with the same problem!

Best regards,

Martin

Read Full Post »