Display Deleted Site Collections in a Content Database


Scenario/Problem: You need to obtain a site collection reference and therefore need a listing of available site collection URLs within a specific content database.


Solution: Use the Get-SPDeletedSite cmdlet with the ContentDatabase parameter.

To obtain a deleted site collection reference object, you need to find the Path or Site Id of the site collection. Using the Get-SPDeletedSite cmdlet with the ContentDatabase parameter, as shown in Listing 8.19, displays all deleted site collections in the specified content database.

Listing 8.19. Displaying Deleted Site Collections in a Content Database


Get-SPDeletedSite -ContentDatabase "WSS_CONTENT"



Tip

Use the New-SPContentDatabase cmdlet to quickly generate a new content database to move your site collections.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.150.163