Quantcast
Channel: SharePoint 2013 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 21070

The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered. Only when running GUI.

$
0
0

Hi

I have a sharepoint 2013 server standard.

Powershell scripted configuration of the Farm.

With my spadmin (sharepoint setup admin) i can run all scripts in powershell ise and sharepoint management shell without any issues. However, i have created a GUI,When i start the GUI script i will get the error :

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

It started happening when i reinstalled sharepoint and and had run my farm setup script and tried to run my GUI tool for creating sites.

If i try my GUI tool on another test environment it works without issues. It also works on my current setup if i use the farmAdmin account.

When using my GUI i get the following errors:

get-spsite : 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 C:\Users\spadmin\Desktop\07Gui_FESRV\SharePointToolbox.ps1:391 char:10+ $items = get-spsite+          ~~~~~~~~~~+ CategoryInfo          : InvalidData: (Microsoft.Share...SPCmdletGetSite:SPCmdletGetSite) [Get-SPSite], SPCmdletException+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetSite
Get-SPWebApplication : 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 C:\Users\spadmin\Desktop\07Gui_FESRV\SharePointToolbox.ps1:433 char:10+ $items = Get-SPWebApplication+          ~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : InvalidData: (Microsoft.Share...tWebApplication:SpCmdletGetWebApplication) [Get-SPWebApplication], SPCmdletException+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SpCmdletGetWebApplication

I did think it might be that spadmin lacked the spshelladmin. I tried to give it to the user by running the command when logged onto as farmadmin, but get this error.

spadmin is a dbowner on all databases though.

any help would be appriciated!

br

Bjorn


Viewing all articles
Browse latest Browse all 21070

Trending Articles