Monthly Archives: October 2011

Item Level Recovery Of SharePoint 2010 Using System Center Data Protection Manager 2010

In order to carry out item level recovery of SharePoint 2010 using System Center Data Protection Manager 2010 (DPM) you may need to update the DPM catalog.

I was testing SharePoint 2010 recovery using DPM and got a shock when a site and page I setup for the testing weren’t listed as being available for recovery despite the fact I’d just created a recovery point.  It turns out they had been backed up, but the DPM catalog was out of date.  The steps below detail how to update the catalog.

Open the DPM Management Shell and enter the commands below, substituting X for you DPM server name

$PG = Get-ProtectionGroup -DPMServerName X

Press Enter, type $PG and press Enter again and you should see a table with two columns.

Type $DS = Get-Datasource $PG[X] and press Enter.  Substitute X with the number of the datasource in the list above.  In my case I want to update the catalog for the “SharePoint 2010” datasource, which is third in the list, so I enter [2] as the list is zero based.   Type $DS and press Enter.

The output above shows the details for the selected datasource.  I want to update the catalog for the Sharepoint Farm, so type the command below and press Enter.  $DS[0] is the value of the datasource item within the list.  This list is also zero based.

Start-CreateCatalog -Datasource $DS[0]

Allow a few minutes for the catalog to update and the items will be available for recovery.

 

 

Using Google Analytics With A SharePoint 2010 Intranet Site

It’s possible to use Google Analytics on a SharePoint intranet site, but there are two items to be aware of.

Firstly, when setting up the profile for the domain don’t worry if you need to add “.com” to the end of the URL, e.g. if your intranet URL is http://intranet you’ll need to enter it as http://intranet.com.  If you don’t do this Google Analytics will complain that the URL ends with an invalid top-level domain name.

Secondly, you’ll need to choose the option of “Multiple top-level domain” at step 1 “What are you tracking”.  Without this you’re site won’t be tracked.

Finally, take your code and paste it into your master pages using something like SharePoint Designer.  I add the script just before the closing </head> tag.

Insert Picture From SharePoint Grayed Out

In SharePoint 2010 it’s possible to insert a picture from SharePoint into a Content Editor Web Part.  However, on a certain page on our site the “Insert Picture From SharePoint” option was grayed out.

The option is dependent on the content type of the page you’re working on.  The content type of the page needs to include a “Publishing HTML” page content field.  As a work around I used the “Insert Picture From address” option.