Riccardo

List all publishing pages and their associated page layout

I’ve often been asked to get almost any kind of report about SharePoint’s content. This time the customer asked me to get the list of all publishing pages and their page layout in a site collection. This is quite an easy task, of course using PowerShell! It’s just a matter of looping through all SPWebs in the site collections, get the page library content and print some item properties in a text file. Let’s see how to do that.

Since this is just a quick tip take a look to the comments in the script, they should be self explaining :)

Continue reading →

Posted by Riccardo in Global, 0 comments

Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException

I already wrote about this topic in the past (http://blog.riccardocelesti.it/an-update-conflict-has-occurred/ – Italian only, sorry guys). If you missed my previous post It was about the SPUpdatedConcurrencyException and how to avoid it. My suggestion was to add a farm property, command-line-upgrade-running and set its value to No. Continue reading →

Posted by Riccardo in SharePoint 2010, SharePoint 2013, 0 comments
Azure RMS Document Tracking

Azure RMS Document Tracking

As part of its continue investments in security Microsoft recently released the public preview (at the moment of this writing) of a new feature of the Azure Rights Management called Document Tracking.

In a few words sharing a document you can now “monitor the use, and thus abuse, of each of these documents shared using a variety of views. If the senders does not like what they see, they can (now) revoke access to the document regardless of where it is stored” (taken from http://blogs.technet.com/b/rms/archive/2015/05/04/doctracking.aspx).

Continue reading →

Posted by Riccardo in Microsoft Technologies, 0 comments
Enabling content type on multiple SharePoint lists with PowerShell

Enabling content type on multiple SharePoint lists with PowerShell

In a new project I’m working on I had to create a new Content Type and make it available on all the document libraries in the site collection. I had to choices: browse each document library’s settings page and enable the content type via the UI or let PowerShell do it for me. Since I’m really lazy I chose the scripting way.

A few days ago I published the script on TechNet Gallery,Enabling content type on multiple lists with PowerShell. As you can imagine the script enables a content type on each document library in a site collection. It takes three parameters: site, name and list.

Continue reading →

Posted by Riccardo in PowerShell, TechNet Gallery, 0 comments

Extend Content Query Web Part with QueryOverride

The Content Query Web Part is still one of the coolest things in SharePoint for site builders (IMHO). There’s a lot of literature about it and I’m not going to write about what CQWP is nor how to configure it.

So, what am I writing about? I just want to add my two cents about how to extend the Content Query Web Part with QueryOverride. Continue reading →

Posted by Riccardo in Tips & Tricks, 0 comments