kwizcom banner advertisement

Find All Sites Created with a Specific Site Template

Requirement is to find all blogs created in a SharePoint environment, to apply a fix. Sure, PowerShell can help to find all sites created with a specific site template:

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Get All Blog sites
Get-SPWebApplication "http://SharePoint.crescent.com" | Get-SPSite -Limit All | Get-SPWeb -Limit ALL | Where-Object {$_.WebTemplate -eq "BLOG"} | ForEach-Object {
  Write-Host "Site: $($_.Title) at $($_.URL)"
  }
Find All Sites Created with a Specific Site Template Find All Sites Created with a Specific Site Template Reviewed by Salaudeen Rajack on May 13, 2012 Rating: 5

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.