Skip Ribbon Commands
Skip to main content

Anders Rask on SharePoint


Anders Rask on SharePoint > Posts > Microsoft Message Analyzer messes up PowerShell on SharePoint 2010
September 21
Microsoft Message Analyzer messes up PowerShell on SharePoint 2010

Microsoft Network Monitor is a very useful tool for capturing network traffic. A few days ago a new version was announced on Connect as a successor of NetMon:

Microsoft Message Analyzer beta 1 with a lot of new features.

But you might want to think twice before installing this cool tool on your SharePoint developer box: Shortly after installing it, I opened a SharePoint PowerShell Console and got this message:

The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

Uhmmm... what? The farm was running fine in browser, so I checked the farm status in PowerShell:

Get-SPFarm : Microsoft SharePoint is not supported with version 4.0.30319.269 of the Microsoft .Net Runtime.
At line:1 char:11
+ Get-SPFarm <<<<
    + CategoryInfo          : InvalidData: (Microsoft.Share...SpCmdletGetFarm:SpCmdletGetFarm) [Get-SPFarm], PlatformNotSupportedException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SpCmdletGetFarm

Oh dear... Obviously PowerShell is now running .NET 4! How did that happen?

So I check if PowerShell somehow has updated to V3:


Major  Minor  Build  Revision
-----  -----  -----  --------
2      0      -1     -1


Ok, so we are good regarding that, so what about .NET version?

Major  Minor  Build  Revision
-----  -----  -----  --------
4      0      30319  269

Oooops! So apparently Microsoft Message Analyzer has changed the default .NET version on PowerShell.

Uninstalling Microsoft Message Analyzer put everything back to normal ;-)

So if you want to try out this tool, don't do it on your SharePoint 2010 box, try it on your SharePoint 2013 beta box instead :-)


Another option for running PowerShell 3.0 on a SharePoint 2010 box is to use the -Version 2 parameter when starting up PowerShell on your SP2010 boxes as specified here​


Airport Ride is Easy Now

Great blog! i actually love however it's straightforward on my eyes and therefore the info area unit well written. i'm curious however i'd be notified whenever a brand new post has been created.
 on 7/18/2018 5:49 AM

Add Comment


Body *

Migrated Source URL

Commentator Name

Commentator Email

BotCheck *

Are you human? What is the sum of fifty-two minus ten?