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:

PS>Get-SPFarm
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:

PS>$host.Version 

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

 

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

PS>[Environment]::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 :-)

EDIT:

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​

Comments

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 https://www.edisoncarservice.com whenever a brand new post has been created.
 on 7/18/2018 5:49 AM

Microsoft Message Analyzer

Oooops! So apparently Microsoft Message Analyzer has changed the default .NET version on PowerShell. Uninstalling Microsoft Message Analyzer put everything back to normal. run 3 https://run3free.com free online
 on 9/20/2018 3:02 AM

Lachlan Kirkwood

Internet is playing important role in our life. According to https://www.essayguard.co.uk/ people are interested in online gambling now a days. It is not good for people. People must quick gambling. They need to use internet for good purposes to get benefits.
 on 10/6/2018 10:36 AM

Get Homework Online

For example if you apply for a visa as a Chinese language citizen AI-primarily based social credit score remains one of the https://www.gethomeworkonline.com/do-my-college-homework key criteria. A latest report via Samantha Hoffman a touring fellow at Mercator Institute for China studies claims.
 on 12/13/2018 4:24 AM

Assignment Writing Service

Microsoft Network Monitor is a censured parcel analyzer. It empowers catching, seeing, and breaking down system information and interpreting system conventions. It tends to be utilized to investigate organize issues and applications on the system. http://www.assignmentcorner.co.uk/assignment-writing-service
 on 12/18/2018 6:12 AM

alicetaylor

Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for me
http://geometry-dash.net
 on 12/19/2018 7:57 PM

Anna

Very helpful advice in this particular post! It’s the little changes that make the largest changes. Thanks for sharing!
http://sushi-cat2.com
 on 12/25/2018 3:30 AM

Re: Microsoft Message Analyzer messes up PowerShell on SharePoint 2010

great information here, i really love and enjoy this article, thanks for sharing https://run3i.com and https://stephencurrywallpaper.com
 on 1/22/2019 3:59 AM

Great

The article you have shared here very awesome. I really like and appreciated your work. I read deeply your article, the points you have mentioned in this article are useful
http://sushi-cat2.com
 on 2/19/2019 11:55 PM

very good tutorial, appreciate

The tutorial you have shared here are great. I really love and appreciated your work. I have read deeply your post, the points you have mentioned in this post are helpful https://scottmannshow.com
 on 3/7/2019 7:17 AM
1 - 10Next

Add Comment

Title


Body *


Migrated Source URL


Commentator Name


Commentator Email


BotCheck *


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

Attachments