首页 > 其他专区 > SharePoint >

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

SharePoint 2021-06-25 20:58:03

错误截图

错误日志

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

主要错误

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 not Server farm 错误

office教学网 Copyright © 2016-2021 office.mshxw.com. Some Rights Reserved. 备案号:晋ICP备2021003244-6号