February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to obtain a site collection reference and therefore need a listing of available site collection URLs.
Solution: Use the Get-SPSite cmdlet without any parameters to retrieve all available site collections.
To obtain a site collection reference object, you need to find the URL (Identity) of the site collection. Using the Get-SPSite cmdlet by itself (see Listing 8.1) displays all available site collections, as shown in Figure 8.1.
Listing 8.1. Displaying All Available Site Collections
Get-SPSite
Figure 8.1. The Get-SPSite cmdlet displays all available sites.
Read now
Unlock full access