In late 2014 I showed a couple of left field PowerShell scripts at a number of sessions across Europe and North America, one of them was this one.

Shown off the cuff in response to a question raised (In New York I think) about using PowerShell against SharePoint 2007, I’ve finally found the time to take the original somewhat scrappy script and polish it up to make it suitable for distribution.

It’s pretty simple stuff – take some parameters and based on switches passed to functions look for and optionally delete closed web parts on all pages in all webs in all site collections of a given web application.

The concept would work for later versions of SharePoint, you’ll just have to swap out some of the functions for native PowerShell SP cmdlets – but I will let you figure that out…

You can find the download here.

Enjoy!

more to follow…