You are a SharePoint Administrator for Contoso, Ltd. While doing weekly maintenance you discover that a web application

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

You are a SharePoint Administrator for Contoso, Ltd. While doing weekly maintenance you discover that a web application

Post by answerhappygod »

You are a SharePoint Administrator for Contoso, Ltd.
While doing weekly maintenance you discover that a web application at http://sharepoint.contoso.com has an orphan site. The orphan site is located in the
WSS_Content database.
You need to resolve the issue.
What should you do?

A. In Central Administration, under Application Management, delete the appropriate site collection. Use the Recover data from an unattached content database option to recover the site collection.
B. In Central Administration, select the http://sharepoint.contoso.com web application. Select the database that contains the orphaned site. Select Remove database and click OK. Run the Windows PowerShell cmdlet Dismount-SPContentDB.
C. Run the following Windows PowerShell command: $ContentDb = "WSS_Content"$db = Get-SPDatabase | where {$_.name ""eq $ContentDb}Remove- SPContentDatabase $dbMount-SPContentDatabase ""WebApplicaion http://sharepoint.contoso.com""Name $ContentDb
D. Run the following Windows PowerShell command: $wa = Get-SPWebApplication http://sharepoint.contoso.com $wa.Sites.SyncRoot
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This topic has 1 reply

You must be a registered member and logged in to view the replies in this topic.


Register Login
 
Post Reply