对于执行Get-SPWeb遇到错误“Cannot find an SPWeb object with Id or Url”的解决方案
2018-01-28 23:53
676 查看
当运行PowerShell Cmdlet“Get-SPWeb”时遇到如下错误“Cannot find
an SPWeb object with IDor URL”。
通过查询主要原因是没有在对应执行语句的content database赋予足够的权限。
可以通过下面方式解决:
通过Get-SPContentDtabasae快速找到Web
Application对应的content database;
然后执行下面语句:
$database = Get-SPContentDatabase -site http://sharepoint Add-SPShellAdmin -UserName Domain\User -database
$database
在执行完语句后,重新run
PowerShell Cmdlet "Get-SPWeb",语句执行成功。
感谢阅读。
当运行PowerShell Cmdlet“Get-SPWeb”时遇到如下错误“Cannot find
an SPWeb object with IDor URL”。
通过查询主要原因是没有在对应执行语句的content database赋予足够的权限。
可以通过下面方式解决:
通过Get-SPContentDtabasae快速找到Web
Application对应的content database;
然后执行下面语句:
$database = Get-SPContentDatabase -site http://sharepoint Add-SPShellAdmin -UserName Domain\User -database
$database
在执行完语句后,重新run
PowerShell Cmdlet "Get-SPWeb",语句执行成功。
感谢阅读。
相关文章推荐
- xcode7 真机调试遇到错误An App ID with Identifier 'com.apple.dsfchat' is not available.
- iOS常见错误2-CoreData: Cannot load NSManagedObjectModel.nil is an illegal URL parameter
- C# 编程遇到An object reference is required for the non-static field, method, or property错误
- 我遇到的错误提示:reason: '*** setObjectForKey: object cannot be nil (key: id)' 的病因
- Specified ID:supplyItemLocalDS collides with the ID for an existing SmartGWT component or object.
- 使用Coredata数据库出现的错误 CoreData: Cannot load NSManagedObjectModel. nil is an illegal URL parameter
- CentOS 6.7频繁弹出”Cannot find a valid baseurl for repo”错误提示框的解决方案
- xcode7 真机调试遇到错误An App ID with Identifier 'com.apple.dsfchat' is not available.
- 问题ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory的解决方案
- CENTOS7错误:Cannot find a valid baseurl for repo: base/7/x86_6
- Error: Cannot find module 'core-js/library/fn/get-iterator'解决方案
- [ASP.net教程] 新浪OAuth网站登陆连接,请求access_token时遇到21323 miss client id or secret 的解决方案
- 关于“cannot find a valid peer process to connect to”错误的解决方案
- 遇到了ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
- 虚拟机virtualbox:Could not find an open hard disk with UUID(解决方案)
- 申请Apple ID出现“An unknown error has occurred.”(发生了未知错误)的解决方案一
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- Visual Studio 2015打开ASP.NET MVC的View提示"Object reference not set to an instance of an object"错误的解决方案
- yum错误,Cannot find a valid baseurl for repo: base 和 No more mirrors to try
- Ubuntu 执行sudo apt-get update 出现错误 E:Sub-process returned an error code 的错误