SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
PS C:\Users\Administrator> Export-SPWeb "http://win-oql2facn6h8/" -itemurl "List
s/Disney" -path "c:\Backups\disney.cmp"
Export-SPWeb : <nativehr>0x80070057</nativehr><nativestack></nativestack>
At line:1 char:13
+ Export-SPWeb <<<<  "http://win-oql2facn6h8/" -itemurl "Lists/Disney" -path "c
:\Backups\disney.cmp"
    + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletExportWeb:
   SPCmdletExportWeb) [Export-SPWeb], ArgumentException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletExportWe
   b

Above was the error message. I can access the list at http://win-oql2facn6h8/Lists/Disney/AllItems.aspx?InitialTabId=Ribbon%2EList&VisibilityContext=WSSTabPersistence

I suspect that there could be typos in my cmdlet that leaded to this error, but I've been unable to locate it.

share|improve this question
up vote 2 down vote accepted

I just forgot a slash here: -itemurl "/Lists/Disney"

share|improve this answer

This works fine with Powershell!

Export-SPWeb -Identity http://win-oql2facn6h8/ -ItemURL /Lists/Disney -Path c:\Backups\disney.cmp
share|improve this answer

You need the full URL in your -ItemURL parameter

Export-SPWeb "http://win-oql2facn6h8/" -itemurl "http://win-oql2facn6h8/Lists/Disney" -path "c:\Backups\disney.cmp"
share|improve this answer
    
Thanks, but it gave me the same error :( – Terry Li Oct 14 '11 at 15:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.