SharePoint 2010 - PowerShell command to get list of all sites in a site collection

This is a powershell command to get a list of all sites and subsites in a site collection for SharePOint 2010 exported to a CSV


Get-SPWebApplication http://site | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL, ID, ParentWebID | Export-CSV C:\InfoArch.csv -NoTypeInformation



Source: https://social.technet.microsoft.com/Forums/lync/en-US/b4dfb645-69f4-4abd-947c-64ca42af3a26/script-to-get-list-of-sites-and-subsites?forum=sharepointadminprevious
Share on Google Plus

About Tom DeMeulenaere

Highly accomplished information technology professional with extensive knowledge in System Center Configuration Manager, Windows Server, SharePoint, and Office 365.
    Blogger Comment

0 comments:

Post a Comment