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

%3CLINGO-SUB%20id%3D%22lingo-sub-736437%22%20slang%3D%22en-US%22%3EThe%20local%20farm%20is%20not%20accessible.%20Cmdlets%20with%20FeatureDependencyId%20are%20not%20registered%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-736437%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20trying%20to%20run%20PowerShell%20as%20an%20Administrato%20and%20we%20are%20getting%20this%20error%3A%20%3CSTRONG%3EThe%20local%20farm%20is%20not%20accessible.%20Cmdlets%20with%20FeatureDependencyId%20are%20not%20registered%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWe've%20tried%20to%20grant%20the%20user%20access%20to%20database%20role%20SharePoint_Shell_Access%26nbsp%3B%20under%20SharePoint_Cofig%20but%20the%20error%20still%20persists.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20also%20tried%20to%20run%20this%20command%3A%26nbsp%3B%3CSTRONG%3EAdd-SPShellAdmin%20-username%20Domain%5Cuser%26nbsp%3B%3C%2FSTRONG%3Eand%20it%20throws%20this%20error%3A%26nbsp%3B%3CSTRONG%3EAdd-SPShellAdmin%3A%20Cannot%20access%20the%20local%20farm.%20Verify%20that%20the%20local%20farm%20is%20properly%20configured%2C%20currently%20available%2C%20and%20that%20you%20have%20the%20appropriate%20permissions%20to%20access%20the%20database%20before%20trying%20again.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWill%20appreciate%20your%20assistance%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-764144%22%20slang%3D%22en-US%22%3ERe%3A%20The%20local%20farm%20is%20not%20accessible.%20Cmdlets%20with%20FeatureDependencyId%20are%20not%20registered%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-764144%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F370530%22%20target%3D%22_blank%22%3E%40SirAce%3C%2FA%3ETry%20running%20the%20Add-SPShellAdmin%20logged%20in%20as%20the%20Farm%20account%20adding%20the%20user%20account%20you%20want%20to%20give%20access.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Visitor

Hello,

 

We are trying to run PowerShell as an Administrato and we are getting this error: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered

We've tried to grant the user access to database role SharePoint_Shell_Access  under SharePoint_Cofig but the error still persists.

 

We have also tried to run this command: Add-SPShellAdmin -username Domain\user and it throws this error: 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.

 

Will appreciate your assistance

 

 

 

 

1 Reply
Highlighted

@SirAce Try running the Add-SPShellAdmin logged in as the Farm account adding the user account you want to give access.