make sure if its a subsite, export/import works on a subsite.
couple of scenarios to double check.
- check if you are able to get to get-spweb object of the url .
---if it spits expection then you probably dont have access.
2.you need to be a shell admin to execute the operation
Issue the following commands from powershell using your sharepoint db owner (or installer account):
$db = Get-SPContentDatabase -site http://sharepoint Add-SPShellAdmin -UserName "Domain\SP_User" -database $db
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.