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
    + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletExportWeb:
   SPCmdletExportWeb) [Export-SPWeb], ArgumentException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletExportWe

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.


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


This works fine with Powershell!

Export-SPWeb -Identity http://win-oql2facn6h8/ -ItemURL /Lists/Disney -Path c:\Backups\disney.cmp

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"
  • Thanks, but it gave me the same error :( – Terry Li Oct 14 '11 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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