Appendix B. Upgrade/Migration

This appendix presents a couple SharePoint cmdlets that you may use during the upgrade and migration process when migrating from MOSS 2007 to SharePoint 2010.

Test-SPContentDatabase

When you’re performing the database-attach migration strategy, part of the operation is to back up the MOSS 2007 content database(s) and then restore it on your SharePoint 2010 SQL Server. You then should test the content database(s) against your new SharePoint 2010 web application to determine if there are any issues.

The syntax for this scenario is as follows:

Test-SPContentDatabase –Name <name of content database>-WebApplication <name of web application to test against>

By default, the current SQL Server instance will be used, but ...

Get PowerShell™ for SharePoint now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.