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.

错误截图

错误日志

位置: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()

 

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

目录
相关文章
得到application server上所有的logon user
通过function module THUSRINFO 可以得到当前application server instance上登陆user的详细信息,如terminal,使用的tcode, last transaction time等等。如果application server有多个instance,可以先使用function module RFC_GET_LOCAL_DESTINATIONS 取得所有的local RFC destination,再用RFC的方式调用THUSRINFO:
得到application server上所有的logon user
|
SQL 数据库 Windows
The Windows account sa does not exist and cannot be provisioned as a SQL Server system administrator
今天遇到一个案例,在使用命令修改一个测试服务器(SQL Server 2014标准版)的服务器排序规则时,遇到了下面错误信息 (具体账号信息脱敏处理,随机生成一个账号密码) The Windows account sa does not exist and cannot be provisione...
1725 0