SharePoint Set-SPUser 命令拒绝访问
生活随笔
收集整理的這篇文章主要介紹了
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
轉載于:https://www.cnblogs.com/jianyus/p/9547088.html
總結
以上是生活随笔為你收集整理的SharePoint Set-SPUser 命令拒绝访问的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: john工具破解密码(Linux、ZIP
- 下一篇: CVE-2021-3156:Sudo 堆