Extract Sitecore Media Library Items

Extract Sitecore Media Library Items

I recently came across a requirement to set up a DAM for a Sitecore instance. The ask is to move existing media library items to the DAM.

Plan

  • Extract all the images and documents using PowerShell scripts.
  • The extract will also generate an Excel sheet with the path and other required fields
  • Share the files with the content team for cleanup and rename to match the new DAM naming conventions.
  • Either bulk upload or scripted upload to the DAM
  • Update the references using Sitecore PowerShell scripts and the Excel export.

Script

The script below will help to extract the Sitecore Media Library, images, and documents with proper extensions, and the Excel sheet with all the fields.