The main reason I began writing my PowerShell extensions was that I needed to do some in-depth traversal of the SharePoint farm and its content. I’m going to demonstrate some of those extensions now, using
Getting an SPWeb
The conventional way of obtaining a reference to an SPWeb is:
get-spweb http://mybiglongservername:8080/path/to/web
Because this requires a fully-qualified URL, [...]
Last week I received an email from a colleague who was having problems with a SharePoint 2007 upgrade. Actually, the upgrade went fine, but when he moved a Publishing Site Collection to a subsite of an existing site collection, he ran into several problems, one of which was that each page had a duplicate set [...]
PowerShell.exe is for losers.
I’ve been using PowerShell since it came out, and along the way I cobbled together a bunch of cmdlets, functions, and filters to create a fairly robust PowerShell toolkit.
Here’s a snippet for you. I was extracting SharePoint profile information and needed to display the “About Me” field in an application that couldn’t render HTML, so I needed to convert the HTML to text. This is a bit more complex than simply stripping the HTML tags out of the content. Doing that would preserve [...]
I decided to write a function to make it easier to report progress in PowerShell.
The Problem
You may be familiar with Write-Progress, but if you’re like me, you probably don’t use it that often, partly because you don’t use it that often, so whenever you want to it means you have to go look up the help [...]
So Powershell is mostly awesome. I realize I’m a little late to the game in talking about it. Everyone seems to have gone silent on Powershell. I wonder why?
Scripting is Awesome
I’m a huge fan. The linux guys have known this for a while, and even the Mac folks. The Windows folks, however, have long had [...]