I encountered this error message everytime I open management shell, I'm local administrator and farm administrator, the account is in WSS_RESTRICTED_WPG_V4 group and I run the management shell as administrator:
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered
After some google searching I found there's three popular solutions for this problem:
- set management shell target to 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 ' "
This solution does not work for me.
- The error occurs because Windows Management Framework 3.0 is installed via Windows Update or manually.
I checked program and features, did not find windows management framework
- I have to set up with the following memberships to the SharePoint_Configuration database: SharePoint_Shell_Access and db_owner in SQL server.
Since I'm not the system admin I'm not sure how the sharepoint was installed, but I know we installed SQL server 2008 after sharepoint 2010 was installed, and I just checked SQL server management studio and could not find any sharepoint related data or permission so I can't really set up the memberships.
I think number 3 is the reason causing this error, but I'm not sure how to approach this problem, can someone help me about this? Thank you!