Tuesday, May 29, 2012

Powershell Error : Get-SPSolution..The local farm is not accessible.


For a relatively new user who's just added to the farm, even if the user is a Farm Admin, receives one of the following errors especially when deploying a WSP:


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

followed by this error

"Get-SPSolution : Cannot access the local farm. Verify that the local farm is pr
operly configured, currently available, and that you have the appropriate permissions to access the database before trying again."


Resolution:

1. Login as the Farm Setup user 
2. Launch SP2010 Managementshell
3. Run ADD-SPSHELLADMIN -USERNAME domain\UsertobeAdmin

No comments:

Post a Comment