When I was trying to run SharePoint Management Shell, I was getting following error:
1- The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
2- Microsoft SharePoint is not supported with version 4.0.30319.17929 of the Microsoft .Net Runtime.
I found solution on microsoft support Link
Resolution is is to change the Target field value from SharePoint Management Shell:
Resolution is is to change the Target field value from SharePoint Management Shell:
- Click Start, and then right-click SharePoint 2010 Management Shell.
- Click Properties.
- Click the Shortcut tab in the SharePoint 2010 Management Shell Properties window.
- Input the following value in the Target field:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Version 2.0 -NoExit " & ' C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\\sharepoint.ps1 ' "
Note:- For SharePoint 2013, We need to replace 14 with 15.
And Its Done.
No comments :
Post a Comment