1

I'm looking for a way to generate a list of all site collections with their URLs, Titles and Descriptions. While I was googling it, I noticed that most of the scripts are using Get-SPWebApplication and Get-SPSite but the "Description" is attached to Get-SPWeb.

Is there a way to list them all at once?

Thanks

Artur

1 Answer 1

3

Please try this:

 Get-SPSite -Limit All | Get-SPWeb -Limit All | Select-Object -Property Title, Url, Description

If you need to know urls of root webs only you can use following code:

Get-SPSite -Limit All | Get-SPWeb -Limit All | Where { $_.IsRootWeb } | Select-Object -Property Title, Url, Description
1
  • Default scope for Get-SPSite is farm scope, so it should return all site collections within your farm
    – rafter13
    Commented Aug 30, 2017 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.