Check for free disk space with Powershell

Recently I’ve been asked from a client to create a script to check for free disk space on their SharePoint VMs on a daily basis, no matter if other software, like SCOM, was in place or not.

I created a PowerShell script that checks all drives from a list of servers. If the script detect less 20 GB it sends and e-mail to the SharePoint admin.

See the script below for details. (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…)

List all WebParts in page using Windows Powershell

List all WebParts in page using Windows Powershell

A couple of days ago I noticed a tweet in the #SPHelp feed that called my attention. Here it is:


I was sure that I already used a Powershell script to do that, but when I found and tried it I noticed that all the resulting rows reported only ErrorWebPart(more…)

Export/Import Managed Properties via Powershell

Should I make my blog “global” or keep it “local”? This is something I’ve been wondering about for a long time. Now it’s time to cross the line and so here we are: this is my first “non-Italian” post (I don’t pretend to call it “English” yet).

Today I published a new Powershell script on Technet Gallery (http://gallery.technet.microsoft.com/Powershell-script-to-09ffa974) that allows you to update the SharePoint 2013 search schema exporting, importing and deleting managed properties. (more…)