Get a list of site collection - Powershell Get a list of site collection - Powershell powershell powershell

Get a list of site collection - Powershell


try this:

Get-SPSite -WebApplication http://myCompany.bofa.com:9966 -Limit All |   Select -ExpandProperty AllWebs | ft url, Title, Created -auto > c:\mysite.txt

if it were not enough you can try this:

Get-SPSite -WebApplication http://myCompany.bofa.com:9966 -Limit All |   Select -ExpandProperty AllWebs | ft url, Title, Created -auto | out-string -width 1024 > c:\mysite.txt # 1024 can me more or less depends the length you need