Powershell – “Powershell: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered” after installing SP (not configured)

powershellsharepointsharepoint-2013

I have 2 servers (Hyper-V clients) with Windows 2012R2 and SharePoint 2013 installed.

On the first server, I am installing SP and doing nothing with him. With second server, I am testing SP.

Many times configuring farm and doing "revert" on hyper-v host machine when in client machine something wrong in my work with farm, and I am starting work with previous snapshot. But once my SP console doesn't work and wrote me:

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

Remember, this SP is not configured, he hasn't any DB. This problem is on 2 servers! I am trying use revert, but always this error. What happened? How to resolve?

Best Answer

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.

Check This out

You could always try Running powershell as another user much like one of the comments suggest but you will need to know who to run it as.

Cheers

Truez

Related Topic