PowerShell

Find and remove missing features, the PowerShell way

I do SharePoint updates and migrations since a long time and one of the most annoying error I often get is the "Missing feature". Searching the web you will find a lot of posts that show how to find the missing feature details by querying the content database. Most of them warn about the fact that querying SharePoint database is non supported by Microsoft (ref. https://support.microsoft.com/en-us/help/841057/support-for-changes-to-the-databases-that-are-used-by-office-server-pr). You could create a database snapshot and query against it or you could use 3rd party tools, but if none of these fit your needs you could try the PowerShell way.

Read More

Posted by Riccardo in PowerShell, Troubleshooting, updates

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. Continue reading →

Posted by Riccardo in Global, PowerShell, 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
Resetting SharePoint Blob Cache

Resetting SharePoint Blob Cache

I recently published a new article on the Italian SharePoint Community web site about clearing the SharePoint Blob Cache. It’s in Italian, but if you want to take a look you can find it here:

Continue reading →

Posted by Riccardo in PowerShell, SharePoint 2013, SharePointCommunity.it, 0 comments
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 ErrorWebPartContinue reading →

Posted by Riccardo in PowerShell, TechNet Gallery, 0 comments