Last active
August 19, 2021 13:27
-
-
Save cmd64/c150deaaeda61e2d3ebcfb72d9f52043 to your computer and use it in GitHub Desktop.
[Powershell] Get all site collections on farm.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-SPSite -Limit All | Get-SPWeb -Limit All | Select-Object -Property Title, Url | Format-Table * | |
#Only Root Webs | |
Get-SPSite -Limit All | Get-SPWeb -Limit All | Where { $_.IsRootWeb } | Select-Object -Property Title, Url | Format-Table * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment