Which Windows PowerShell cmdlets should you run?

A SharePoint 2010 environment contains the site collections described in the following table.

You plan to migrate the environment to SharePoint 2013. You create a SharePoint 2013 site at the URL http://
testIntranet.contoso.com. You restore the database backups from the 2010 environment to the 2013
environment.
You test the migration plan by migrating the Intranet_Content database to the new site. You need to verify that
the test migration succeeds.
Which Windows PowerShell cmdlets should you run? (To answer, drag the appropriate cmdlets to the correct
location or locations in the answer area. Each cmdlet may be used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
Select and Place:

A SharePoint 2010 environment contains the site collections described in the following table.

You plan to migrate the environment to SharePoint 2013. You create a SharePoint 2013 site at the URL http://
testIntranet.contoso.com. You restore the database backups from the 2010 environment to the 2013
environment.
You test the migration plan by migrating the Intranet_Content database to the new site. You need to verify that
the test migration succeeds.
Which Windows PowerShell cmdlets should you run? (To answer, drag the appropriate cmdlets to the correct
location or locations in the answer area. Each cmdlet may be used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
Select and Place:

Answer:

Explanation:
Note:
* Test –SPContentDatabase
Use the Test-SPContentDatabase cmdlet to test a content database against a Web application to verify all
customizations referenced within the content database are also installed in the web application.
* The Mount-SPContentDatabase cmdlet attaches an existing content database to the farm. If the database
being mounted requires an upgrade, this cmdlet will cause the database to be upgraded.
Example:
Mount-SPContentDatabase “MyDatabase” -DatabaseServer “MyServer” -WebApplication http://sitename
This example mounts an existing database to the sitename web application. If upgrades are required, it triggers
database schema upgrade and then performs only build-to-build upgrade actions on existing site collections if
required.
—————————————————————————————————————————–
Rosa (7.05.2015), Alex (23.07.2015): The answer should be
Test-SPContentDatabase -Name Intranet_Content -WebApplication http://testIntranet.contoso.com
Mount-SPContentDatabase -Name Intranet_Content -WebApplication http://testIntranet.contoso.com
https://technet.microsoft.com/en-us/library/cc262483.aspx
mahesh (23.08.2015): Before migrate how we can test? Ans should be like
Mount-SPContentDatabase -Name Intranet_Content -WebApplication http://intranet.contoso.com
Test-SPContentDatabase -Name Intranet_Content -WebApplication http://testIntranet.contoso.com
J (18.10.2015): You can’t mount or test the 2010 instance. Does not make sense.Noted that the test commad specify the site and database. Then you should be mounting before testing.
Morne (9.12.2015): This question is a bit wrong.
The Mount-SPContentDatabase command will perform the upgrade of the DB. Would be pointless then running
the Test-SPContentDatabase after the fact. However the Test-SPContentDatabase command can be run
before the DB is Mounted/Joined to a Web Application and before it is upgraded to a SP 2013 Version
https://technet.microsoft.com/en-us/library/ff607941.aspx
That being said the question does say “verify that the test migration succeeds” Running Test first you will know
if it will fail or not. Running mount first and then testing is the only way to use both commands.
Ben (14.03.2016): You need to verify that the test migration succeeds.
Not: Test and migrate the Intranet_Content database
the mount = the migrate. demisch done before test.



Leave a Reply 0

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