February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to obtain a specific deleted site collection reference.
Solution: Use the Get-SPDeletedSite cmdlet to assign a variable the results using the -Identity parameter.
Providing the identity of the deleted site collection with the Get-SPDeletedSite cmdlet retrieves a specific site collection. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 8.20.
Listing 8.20. Assigning a Variable to a Specific Deleted Site Collection
$deletedSiteCol = Get-SPDeletedSite -Identity " /sites/deletedsitecol"
The Identity parameter, in this case, is the path shown when retrieving all site collections (Get-SPDeletedSite).
Read now
Unlock full access