Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
3.7k views
in SharePoint Server by 2 2 5
edited by

I am using a farm account to run the SharePoint PowerShell as an administrator.

The farm account has SharePoint_Shell_Acces on the SharePoint config database.

But I'm still cannot access the local farm and get this error when open SharePoint PowerShell.

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

Any thoughts why I still cannot access the local farm?


1 Answer

1 like 0 dislike
by 152 169 345
selected by
 
Best answer

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

The “local farm is not accessible” issue usually occurs in case of

  • The SharePoint Management Shell is not run as Administrator.
  • The current user doesn’t have sufficient permission on the SharePoint_Config database.

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

  • A new .Net framework update has been installed that affects the Power Shell version.

For more details, please check The local farm is not accessible

As per your explanation,

  • You already have SharePoint_Shell_Acces on the SharePoint_config database as well as
  • You are using a farm account and running the SharePoint Management Shell as Administrator

Therefore, a high probability that a new .net framework has been applied and affect your farm.

In this case, you should run your PowerShell with an old version as mentioned at The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

by 2 2 5
1 0
exactly, it was a .net framework update issue! the link is informative, thanks for your help!
by 152 169 345
0 0
Glad to hear it helped you, please don't forget to upvote the helpful answer :)
by 2 2 5
0 0
Done, thanks again :)
If you don’t ask, the answer is always NO!
...