Enumerate All SharePoint 2010 Sites and Templates

Run this is PowerShell (With SharePoint snap-in):

Get-SPWebApplication "http://webapplicationurl/" | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, Url, WebTemplate, Configuration, ID | Export-CSV c:\IterateAllSitesSubsites.csv -NoTypeInformation

This will output a comma separated value file you can open with Excel and get all of your sites with their templates.


Popular posts from this blog

SharePoint Designer 2013 Approval Workflow with Comments

Change SharePoint server hostname and Web Application Names

SharePoint Search - Content Processing Pipeline Failed to Process the Item