Get-SPWeb Cannot access the local farm

Get-SPWeb : Cannot access the local farm. Verify that the local farm is properly configured, currently available, an
d that you have the appropriate permissions to access the database before trying again.

I was using one of the farm service accounts to run my PowerShell scripts, not good.
The service account was locked and caused the above error.

Leave a Reply

Your email address will not be published. Required fields are marked *