Here my issue: I have 2 SP farms, therefore two web apps/site collections/ etc.
On one, I run:
Import-SPWeb -Identity "http://policies/locations/0015/" -Path "C:\filepath.cmp" -Force
which works just fine. On the other farm, I run basically the same with the exception of the identity:
Import-SPWeb -Identity "http://v2policies/locations/0015/" -Path "C:\filepath.cmp" -Force
However this one gives the "Cannot find an SPWeb object with Id or Url" error.
Both URLs are valid, so why would one work and the other not? Running PS as admin, and the user account I am logged into is part of "SPShellAdmin". Running from CA server in each farm.