The local farm is not accessible. cmdlets with featuredependencyid are not registered

Fahed Kollikavil 0 Reputation points
2024-12-11T08:30:11.6333333+00:00

Dears,

Hope this mail finds you well.

We are facing an issue with our SharePoint server while opening either the Windows PowerShell or SharePoint Management Shell, throwing an error as “The local farm is not accessible..”.

I tried to run the Shell with an older version with the following one but still the issue persists.

C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -version 3 -NoExit  " & ' C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\CONFIG\POWERSHELL\Registration\sharepoint.ps1 ' "

Kindly note that all the sites and Central Administration are down in the Internet development environment. Thanks for your understanding.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,407 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,603 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 37,866 Reputation points Microsoft Vendor
    2024-12-12T01:45:13.8+00:00

    Hi @Fahed Kollikavil,

    Usually this is because of a permission issue against the config database. If you go in to your DB select the _config DB and check out the permissions for the user you are logged in as you will probably see you do not have shell access.

    You could refer to following steps to troubleshooting in this article

    https://www.sharepointdiary.com/2014/07/the-local-farm-is-not-accessible-cmdlets-with-featuredependencyid-are-not-registered-powershell-error.html


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.