Questo errore:
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered
compare aprendo la PowerShell di SharePoint 2010/2013 se non è stata eseguita con elevati privilegi (Run as administrator) oppure perchè l'utente corrente non ha privilegi di accesso hai database di SharePoint.

Per risolvere il problema bisogna usare il comando PowerShell Add-SPShellAdmin. Va eseguito da PowerShell con un utente che ha i privilegi di accesso a SharePoint e SQL come ad esempio l'utente con cui si è installato SharePoint. La sintassi è:
DOS / Batch file
Add-SPShellAdmin dominio\nomeUtente

Se compare questo errore è perché non hai usato un account che può accedere a SharePoint:

Add-SPShellAdmin : Cannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access the database before trying again.
At line:1 char:17
+ Add-SPShellAdmin <<<< domino\nomeUtente
+ CategoryInfo : InvalidData: (Microsoft.Share...AddSPShellAdmin: SPCmdletAddSPShellAdmin) [Add-SPShellAdmin], SPCmdletException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletAddSPShellAdmin
Potrebbe interessarti anche: