Problem Description:
Error Message:
I have my SharePoint development environment
and recently install some security updates of Windows Server 2008 R2.
When I try to run SharePoint Shell Command i get the error: "The local
farm is not accessible.
Error Message:
The local farm is not accessible
I was shocked to see this message and started checking the farm –
web applications, site collections, SQL server is accessible or not …so many
things...But let me tell you this is a generic error message and nothing to do
with the farm availability.
Reason: This is happening because you tried running the PowerShell with a
user account that is not an administrator in SharePoint.
Resolution: use your farm
account by which you have installed SharePoint.
How to change and use the farm account?
-start
-All Programs
-Microsoft
SharePoint 2010 Products
-Shift+Right
click on SharePoint 2010 Management PowerShell
-You will
get the option named as “Run as different user”
-enter
the credentials and you are good to go :)
If you
have any queries/questions regarding the above mentioned information then
please let me know.
No comments:
Post a Comment
Your feedback is always appreciated. I will try to reply to your queries as soon as possible- Amol Ghuge
Note: Only a member of this blog may post a comment.