1

Tried to create a new SharePoint 2013 farm with a ps script and got this error.

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

Found the resolution was to use Get-SPShellAdmin to see who had rights to add or run this and got this error.

enter image description here

Any ideas?

3

As far as I can see nothing unexpected is occurring.

You state that you want to create a new SharePoint farm using PowerShell. That implies that the server isn't part of any farm, which is what the message 'The local farm is not accessible.' also suggests.

Then running any SharePoint cmdlet (Except New-SPConfigurationDatabase) has a very high likelihood of failing as there is no SharePoint farm.

So just go ahead and run your PowerShell script to create the farm.

The advise about using Get-SPShellAdmin if you get the message 'The local farm is not accessible.' only applies if the server is part of a SharePoint farm. And then you need to run that as an account which has access to verify that the account you was using didn't have access.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.