[PowerShell] Cannot find an SPWeb object with Id or Url

执行get-spweb的命令的时候,报错了,显示“Cannot find an SPWeb object with Id or Url”。

查了一下好像是权限的问题,所以重新以run as administrator的方式重新打开powershell,再去执行get-spweb的命令就跑成功了。如果还是不行的话,可以尝试一下链接:https://blog.csdn.net/warmsunshine7/article/details/79190801

Powershell命令:
https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/get-spsite?view=sharepoint-ps

猜你喜欢

转载自blog.csdn.net/WendyXu8230/article/details/82864630