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