以其他域账户登陆Sharepoint 2013 服务器,并以管理员权限运行SharePoint 2013 Management Shell时,出现如下错误:
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
同时,所有SharePoint的PowerShell 命令均无法执行。
解决:
首先以有权限的管理员登陆,然后管理员权限运行PowerShell,并将红色部分替换为,上述使用者的域账户
Add-SPShellAdmin -UserName Domain\User