Display Available Site Collections in a Web Application


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


Solution: Use the Get-SPSite cmdlet with the WebApplication parameter.

To obtain a site collection reference object, you need to find the URL (Identity) of the site collection. Using the Get-SPSite cmdlet with the WebApplication parameter, as shown in Listing 8.2, displays all available site collections in the specified web application.

Listing 8.2. Displaying Available Site Collections in a Web Application


Get-SPSite -WebApplication "SharePoint - 80"


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

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