SharePoint (2003 thru Online): How to list all the sub-sites and the Site Collections within a SharePoint Web Application using Powershell

Friday, May 13, 2016

How to list all the sub-sites and the Site Collections within a SharePoint Web Application using Powershell


PowerShell script helpful for getting all the sub-sites and the Site Collections within a SharePoint Web Application.

Get-SPWebApplication https://sp2010.spdev.com | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL, ID, ParentWebID | Export-CSV E:\InfoAllSites.csv -NoTypeInformation





set-executionpolicy allsigned
set-executionpolicy remotesigned
set-executionpolicy unrestricted

No comments:

Post a Comment