on-internet
← Community

Get-SPWeb is unable to find the object with ID or URL

Stack Overflow ·

QUESTION: I can't seem to figure out why I am getting the error below, even though the SharePoint sites exist, along with the document libraries being called. Document library Lib1 has documents/folders, document library Lib2 is empty. Anyone know what has gone wrong? ERROR: Get-SPWeb : Cannot find an SPWeb object with Id or Url : Lib1 and site Url https://sharepoint.oshirowanen.com/sites/oshirodev. At C:\Users\Oshiro\Desktop\CopyDocs.ps1:31 char:23 + $web = Get-SPWeb <<<< -Site $site -Identity $identity -ErrorAction Stop; + CategoryInfo : InvalidData: (Microsoft.Share....SPCmdletGetWeb:SPCmdl

Comments

Sign in or sign up to comment and upvote.

No comments yet.