PowerShell v3 & SharePoint 2010

I’m finding more and more that I’m late to the party for some things in SharePoint.

Apparently, SharePoint 2010 isn’t compatible with PowerShell v3.

Basically, when you try to use the SharePoint 2010 Management Shell you’ll be greeted with this:

clip_image001

Once you encounter this lovely error you’ll think you’ve done something horribly wrong. Is something up with your account? Did you break something? Are you losing it?

Nope to all of the above.

To get around this, type: powershell –v 2

Then hit enter. You now have regular ole PowerShell loaded. You’ll have to load the SharePoint snap-in if you want to do anything with SharePoint though. For anyone who may need it, the snap-in is:

Add-PSSnapin Microsoft.SharePoint.PowerShell

You can check out all the details here in this Connect article:

http://connect.microsoft.com/PowerShell/feedback/details/746908/powershell-3-0-and-sharepoint-2010

Hopefully this gets fixed in the next CU.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: