Thursday 22 May 2014

Powershell script to get all the site templates used with in a site collection

$siteURL =  read-host "Enter the url of the site collection to identift the temaplates used by them"
$site = Get-SPSite "http://testdev..com"
#$site = Get-SPSite $siteURL
  foreach ($web in $site.AllWebs) {
      $web | Select-Object -Property Title,Url,WebTemplate,WebTemplateID,Name
  }
 $site.Dispose()

No comments:

Post a Comment