Restore-SPSite : Access Denied
You do not have permission to perform this action or access this resource.
This is the error I get when trying to restore a Site Collection backup from the integrated development environment to my personal development environment. At this point I am unable to nail down the issue and it's driving me mad! Thoughts anyone?
I am logged in with Administrator privileges both for the Farm and Domain.
Thanks in advance.
Scott
UPDATE 1
Thank you all for your quick responses!I should have mentioned this in my prior submission. I have successfully performed this action with the same site collection backup on domain c (a different CloudShare environment).
So, let me provide some more context:
- Backup of site collection is from domain a
- I'm trying to restore the site collection on domain b (CloudShare Environment)
- I have verified that both Farms have SP1 and June 2011 CU applied.
- On domain b I am able to do the following: backup a site collection, create new content databases, and create site collections from Powershell using the same account used to restore the site collection.
- I have tried creating a new content database within the web application and specifying the new database name in restore parameters. I have used the -force parameter with no success.
- I've looked through the Event Viewer logs, SharePoint logs, and even used SQL Profiler to see what is going on with no hint of where it's complaining.
The very first time I try to run this command it does start the process and runs for a minutes and then I get this error. Subsequent tries, it fails immediately.
Does anyone have some suggestions of where else to look or what specifically I should be looking for? I would expect that there's an issue with permission against a database but this account has dbo permissions on the content database and the SP Config DB. Any additional thoughts or comments would be greatly appreciated!!!
Here is the latest error after I've created a blank site collection from Central Admin and then tried to restore over top of it using the -force parameter.
PS C:\Users\Administrator> restore-spsite -identity http://sp2010/apps/procedures/sites/pps -path C:\temp\20111010091_spdd-dev08.bak -force
Confirm
Are you sure you want to perform this action? Performing operation "Restore-SPSite" on Target "http://sp2010/apps/procedures/sites/pps".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y
Restore-SPSite : The operation that you are attempting to perform cannot be completed successfully. No content databases in the web application were available to store your site collection. The existing content databases may have reached the maximum number of site collections, or be set to read-only, or be offline, or may already contain a copy of this site collection. Create another content database for the Web application and then try the operation again.
At line:1 char:15
+ restore-spsite <<<< -identity http://sp2010/apps/procedures/sites/pps -path C:\temp\20111010091032_spdd-dev08.bak -force
+ CategoryInfo : InvalidData: (Microsoft.Share...dletRestoreSite:SPCmdletRestoreSite) [Restore-SPSite],
InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRestoreSite
Thanks! Scott