I would like to know how to export a document library (SharePoint 2010) using PowerShell and also saving metadata about content. I need to repopulate the document library with items coming from itself. In other words, I want to separate list items of the list structure.
The procedure should follows the steps below:
- Export content of the document library (documents and associated metadata)
- Delete the document library
- Recreate the same document library (empty)
- Populate the document library with exported data