Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.
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

3 Answers 3

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.