SharePoint Administration with PowerShell

Last weekend, I had the opportunity to speak at Boston’s SharePoint Saturday.  I met some great people, enjoyed some EXCELLENT food, and talked A LOT of SharePoint. For those who couldn’t make it, here is a link to the slide deck from my session: SharePoint Administration with PowerShell View more presentations from Eric Kraus.


SharePoint + PowerShell Memory Leak

It’s very important that anyone working with SharePoint object model be concerned with the appropriate management of memory.  Most developers are aware of the need to dispose objects properly, but we some times get sloppy when it comes to things like PowerShell. Zach Rosenfield just posted a very important note for anyone using PowerShell with…


SharePoint Development Wiki

Some wonderful things are happening for SharePoint developers all across the world.  Thanks to Jeremy Thake at, the SharePoint development community now has a wiki to collaborate on.  You can find the wiki here: Here’s how you can help: Follow on Twitter: Become a fan on Facebook:!  – The wiki can…


Cannot remove file "". Error Code 158

While developing a custom feature receiver, I was attempting to delete a masterpage file from the MasterPage Gallery when I received an SPException with the message:  “Cannot remove file “<filename>”.  Error Code 158″  Since I found no help on the web, I thought I would share this simple solution.  I did the usual routine of…


SharePoint PowerShell Power Pack

Using PowerShell to support SharePoint has saved me quite a bit of time.  I can do just about everything I would do in .NET, only without firing up Visual Studio just to check a property of a SPWeb object. I have compiled a collection of PowerShell functions and methods that I commonly use.  It’s in…


Install SharePoint on Vista

We’ve all struggled with using VPCs for our SharePoint development.  Thanks to Bamboo Solutions, we can now install WSS and MOSS on our host laptops running under Vista. Check out this page for steps on how to complete this. Downloads SQL Server Express Edition SQL Server Management Studio Express Windows SharePoint Services 3.0 with Service…


SharePoint Solution Packages "No More Xcopy"

I talk to many developers who are still using “xcopy” to deploy some of their SharePoint files to the 12 Hive (especially trust files and custom stsadm commands).  It is well known that the manifest.xml file within a WSP can be configured to deploy assemblies to the GAC, update a web.config, and deploy files to…


Reinstall MOSS During Gradual Upgrade

Let’s say you upgrade WSS 2.0 to WSS 3.0 and you’ve just installed MOSS 2007.  You are now trying to create a new Shared Services Provider, but you immediately receive warnings at the top: No indexers To resolve this, you need to configure your search service.  However, when you view the available services (Central Administration…


Use PeopleEditor (People Picker) in SharePoint Custom App Dev

How to add the PeopleEditor (People Picker) control to your custom application development (ASPX, user controls, web parts, etc.)The control we are interested in is the Microsoft.SharePoint.WebControls.PeopleEditor control.  First, we need to add a reference to the Namespace containing our control: <%@ Register Tagprefix=”wssawc” Namespace=”Microsoft.SharePoint.WebControls” Assembly=”Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>Next, add the PeopleEditor control to…