none
powershell with export-spweb error again RRS feed

  • Question

  • hi

    I sent a earlier post about this cmdlet, which was fixed due to syntax. But now I'm having issues with :

     PS C:\Windows\system32> Export-SPWeb http://sp20103/sites/dev/ -itemUrl "/Lists/xmas" -path "c:\xmaslist.bak"


    Export-SPWeb : The URL provided is invalid. Only valid URLs that are site collections or sites are allowed to be export
    ed using stsadm.exe.
    At line:1 char:13
    + Export-SPWeb <<<<  http://sp20103/sites/dev/ -itemUrl "/Lists/xmas" -path "c:\xmaslist.bak"
        + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletExportWeb:SPCmdletExportWeb) [Export-SPWeb], SPExc
       eption
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletExportWeb

    However it works with

    Export-SPWeb http://sp20103/sites/dev/ -path "c:\web.bak"

    Wednesday, November 30, 2011 12:34 PM

Answers

All replies