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 :)

(more…)

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.

(more…)

Attenzione al security update MS14-022

La scorsa settimana, durante l’ultima (meritata) birra che ha seguito la chiusura di SPOC2014 Francesco Sodano (@aresmarte1) mi ha accennato al fatto che era stato appena stato segnalato dalla community un possibile problema con un Security Update di sistema. A distanza di qualche giorno (scusate, cura disintossicante da informatica) ho approfondito un pò la questione. (more…)