SharePoint Set-SPUser 命令拒绝访问

  · 前言

  最近碰到一个问题,由于User Profile Service服务有问题,用户信息无法更新。所以,想到Set-SPUser命令可以更新,于是乎找到这个命令,但是更新的时候发现拒绝访问的错误。找了很久原因,发现需要设置一下权限,不知道是否还会有人遇到类似的问题,记录一下分享给大家。

  参考链接可能需要梯子,如果无法访问的同学了解一下。

· Solution:  Add a web application user policy with Full control for the Farm Administrator who runs the Script!

  • Open SharePoint 2016/2013/2010 Central Administration site as a Farm Administrator
  • Click Application Management >> Select Manage Web Applications.
  • Select your target web application >> Click the User Policy button from the ribbon.
  • From the Policy for Web Application dialog box, click on "Add Users" link.
  • Select All Zones for the web application and click on Next
  • Enter the user account and Select the permission policy level as "Full Control"
  • Click Finish to save your changes. 


参考链接: http://www.sharepointdiary.com/2016/03/access-is-denied-exception-from-hresult-0x80070005-powershell.html#ixzz5PRL5sK36

posted @   霖雨  阅读(578)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
历史上的今天:
2013-08-28 SharePoint 2013 必备组件之 Windows Server AppFabric 安装错误
点击右上角即可分享
微信分享提示