Good day All,
I have a problem, I uninstalled project server from my app server cause of license issues. Now I have an error "local farm is not accessible" Im unable to reset my passphrase and also I cant Add-SPShellAdmin although I i have a snapshot of my contentDB. I'm not sure what other options do I have to fix this problem
Please help
Rajkiran SwainPosted Jun 9, 2017, 8:49 AM
Even if you have launched the Shell with an account who is in the "Farm administrators" group, you can come across this error.
Why? Because there is a big difference between using your account in the central administration and in PowerShell. When you launch operations in the central administration, the pool account is used, and they have all the required rights on the server and the databases. When you launch commands in PowerShell, your account is used to run the commands, and they must also have the required rights (and in this case, we did not).
Resolution
You can modify manually the rights associated to your account in SQL Server, but instead use the Add-SPShellAdmin
cmdlet which will do the work for you.
Launch this cmdlet by using (for example) the account used to install your farm.
Syntax : Add-SPShellAdmin -UserName Domain\User
Paul SebesPosted Jun 5, 2017, 4:46 AM
Sumit DeshmukhPosted Jun 2, 2017, 12:42 PM
Did you facing "Cmdlets with FeatureDependencyId are not registered" along with "local farm is not accessible” something like error?
If do so please try this link: http://www.sharepointdiary.com/2014/07/the-local-farm-is-not-accessible-cmdlets-with-featuredependencyid-are-not-registered-powershell-error.html
Thanks,
Sumit