scrtipt to compare 2010 site collection and 2016 site collection after migraton

sns 9,236 Reputation points
2020-11-14T08:20:02.317+00:00

I want to pull Site Hierarchy report for old and new site collections and compare them side by side to make sure all subsites were migrated.
Migrated 2010 site collection to 2016. Please share me the relavent script to compare. Thank you.

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,934 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sharath Kumar Aluri 3,071 Reputation points
    2020-11-14T12:42:57.067+00:00

    Below script for your requirement. for some reason I was not able to share the script, try with the article script: Try below one for alternate script.

    Get-SPSite http://portal.globalsp.com/sites/sharatha | Get-SPWeb -Limit All | Select Title, URL, ID, ParentWebID | Export-CSV C:\Report.csv -NoTypeInformation
    https://www.sharepointdiary.com/2016/02/sharepoint-site-collections-subsites-report.html

    Thanks & Regards,

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Jerry Xu-MSFT 7,956 Reputation points
    2020-11-16T06:45:48.96+00:00

    Hi, @sns ,

    I tested with the script sharatha provide and it works great in my end. The html page looks like below:
    39948-image.png

    And for the most straightforward approach, you can try with the cmdlet below:

    Get-SPWebApplication | Get-SPSite -Limit All | Format-Table -Property URL,ContentDatabase   
    

    Reference: https://video2.skills-academy.com/en-us/sharepoint/sites/view-all-site-collections


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.