SharePoint Error - The current user is not an SharePoint Server farm administrator

错误截图

SharePoint Error - The current user is not an SharePoint Server farm administrator

错误日志

位置:C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS

主要错误

The current user is not an SharePoint Server farm administrator.

SharePoint Error - The current user is not an SharePoint Server farm administrator

处理过程

查看了当前User确实不是场管理员,但是尝试换了场管理员也不好用,因为是代码Call管理中心的Job,所以提权操作了,应该以系统账号去操作;

而且,Production没有问题,但是UAT始终报错,经过不懈的谷歌,发现是由于对象模型不允许远程调用造成的,需要执行一条PowerShell命令。

命令

[System.Reflection.Assembly]::LoadFile("C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.dll")

$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService

$contentService.RemoteadministratorAccessDenied = $false

$contentService.Update()

SharePoint Error - The current user is not an SharePoint Server farm administrator

执行完毕,就发现页面可以正常打开了。

上一篇:Web 开发人员和设计师必读文章推荐【系列二十九】


下一篇:级联分类器训练-----OpenCV