I have used this to export and import an infopath library
#Loop through the lists, export the list from the source, and import the list into the destination
foreach($list in $lists)
{
"Exporting " + $sourceWebUrl + $list
export-spweb $sourceWebUrl -ItemUrl ($list) -IncludeUserSecurity -IncludeVersions All -path ($path + $list + ".cmp") -nologfile
"Exporting complete."
"Importing " + $destWebUrl + $list
import-spweb $destWebUrl -IncludeUserSecurity -path ($path + $list + ".cmp") -nologfile
"Importing Complete"
"`r`n`r`n"
}
however it did not copy my workflows with the content? How do I do that? Also, I get this message when viewing forms.
There has been an error while processing the form. |
Click OK to resume filling out the form. You may want to check your form data for errors. |
Hide error details |
You do not have permissions to access a SharePoint list that contains data required for this form to function correctly. An entry has been added to the Windows event log of the server. Log ID:5566 Correlation ID:ccc404e0-d106-4def-b175-c231462038e7 |