Friday, March 7, 2014

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

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

Problem occurs when you start SharePoint 2010 Management Shell (Power shell) but don’t get access to the farm. You would be unable to run commands. 

 Solution 1:Run Power shell with another user who don’t see above message e.g. Farm Admin


 Solution  2: 
  
1.    Execute “Add-SPShellAdmin -Username domain\User”(required user that you want to get Access to Power shell)
2.    Successful execution will ensure that desired user is Shell Admin and can execute commands. 
                            http://technet.microsoft.com/en-us/library/ff607596.aspx 

Solution  3:

As you can see it is Power Shell Version 3.0 which doesn’t support SharePoint 2010

to resolve the issue, change Power Shell start menu short cut path and added –version 2.0 switch parameter, below is the complete path with –version 2.0 switch.

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' "

Add –version 2.0 switch;

By doing this  could run Power Shell 2.0 which support SharePoint 2010 commands

  

Please Comment if you need Any Help.Your Feed back is always Welcome.I Am Happy to Help !!!!!

The term is not recognized as the name of a CMDLET

The term is not recognized as the name of a CMDLET
     


The issue occurs some times while we run the CMDLETS on windows power shell or SharePoint management shell. Its due to the path issue, we can’t simply type the name of a script file in order to run it. Even with the execution policy configured to permit scripts, must precede the script filename with a path. you’ll see the” .\ “path in use, which refers to the current directory. You could also provide any other absolute or relative path in order to run a script—but you must provide a path of some kind. 


 Please Comment if you need Any Help.Your Feed back is always Welcome.I Am Happy to Help !!!!!
Related Posts Plugin for WordPress, Blogger...

ShareThis

X