The code in this module will gather all site collections in your farm and write the details to a CSV file. The CSV file will be formatted to support a migration effort.

This function returns an array of custom PS objects. Each object contains the following

String Migrate
String SourceSiteName
String SourceSiteUrl
String SourceDatabaseName
String SourceWebApplicationName
String SourceSiteTemplate
String DestinationWebApplicationUrl
String DestinationSiteUrl
String DestinationSiteTemplate

Export-SPAllSitesForMigration -CsvFilename "c:\spreports\allsites.csv" -OutGrid

Bob Mixon

My primary goal in life is to support my family, be a friend and enjoy each day as it may be my last. For work, I am a Senior SharePoint Solution Architect, Senior Information Architect and Microsoft SharePoint MVP. You can read my entire profile here.

More Posts - Website

Follow Me:


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.