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

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


With that type of error I would guess you are missing access to the content DB. I'm not sure if your question notes cover that.

To check if your user is listed:

Get-SPShellAdmin 

If it is missing you need to add it.

To add a user as a Shell administrator:

Add-SPShellAdmin -UserName <user name> -Database <database name> 

To take your id and your content database. I'll create a stub example (please adjust it to what you need):

Add-SPShellAdmin -UserName "CONTOSO\Oshiro" -Database (Get-SPContentDatabase -Identity "oshirodev_Content")