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.

Comments

Popular posts from this blog

SharePoint Designer 2013 Approval Workflow with Comments

Change SharePoint server hostname and Web Application Names

The Timer Service Failed to Recycle