Author Archive

PowerShell Tip: Adding Users Without an Email Address

June 2 2010 6 comments

Here’s another handy quickie: we have a bunch of users we want to add as owners when building a SharePoint site, but the adduser STSADM command won’t accept an empty email address. We don’t have real addresses for the users, nor do we want to make something up.

The SharePoint API doesn’t require that users have email addresses, though, so…

Read more »

Disconnecting a SharePoint Server from a Farm When the Config Database Is Missing

May 31 2010 No comments yet

[edit: I forgot to save after updating the post with the relevant registry path. Apologies.]

Last weekend I was tasked with installing a cumulative update on two SharePoint servers and then joining them to two different farms. Pretty basic stuff, except for one thing: the servers were configured to be connected to two older farms, but the old farms were…

Read more »

PowerShell Tip: Searching for Controls Without a Fully-qualified Type Name

May 28 2010 One comment

Today’s post is a quick tip. I’m working with some older code where a lot of the ascx files don’t have a fully qualified type name in the Inherits attribute of the Control directive. I wanted to find them without having to open dozens of files and manually search for offenders:

function Find-Controls-Without-PublicKeyToken([string]$directory) {

Read more »

64-bit SharePoint Assemblies and 32-bit PowerShell Are A Bad Match

May 27 2010 2 comments

Here’s a quick update to break the silence: while browsing Twitter this morning, I came across a link that should be interesting for us PowerShell aficionados. It turns out that trying to use the 64-bit SharePoint assemblies from a 32-bit PowerShell host might not work. While the fix is trivial, the error message is certainly misleading: it looks as if…

Read more »

Customizing PowerShell to be a Read-Eval-Print-Loop for SharePoint

May 12 2010 3 comments

In my previous post I briefly ventured into the world of on-the-fly SharePoint administration using PowerShell. Today, I want to take that idea a step further.

The first thing that popped into my mind when considering using PowerShell was the fact that doing anything interesting with the…

Read more »

Inspecting and Modifying Live SharePoint Instance with PowerShell

May 10 2010 One comment

Continuing my quest to explore how PowerShell can help SharePoint developers and administrators, this time I’ll take a look at a fairly uncommon scenario: inspecting and modifying a live SharePoint instance.

The case I was working on involved a known problematic scenario: a subweb converted into a site collection. The site collection was one where the users could…

Read more »
Page 1 of 212