PowerShell: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
Question
When opening SharePoint Management Shell, we see this error: "The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered."
Environment
- SharePoint 2010 Service Pack 1
- Windows 2008 R2 Standard
Solution:
Are you logged on as SharePoint Farm Admin? If not, you need domain admin to have access execute the below code.
Fix:
Add-PSSnapin Microsoft.SharePoint.PowerShell Add-SPShellAdmin -username DOMAIN\SPAdmin |
The simple fix is to log off and log on as SP Farm Admin.
Enjoy PowerShell :)