View all webs and site templates under site collection
We can get all webs and site templates under site collection by using the below small script. Every site in sharepoiont is using one site template. Sometimes you need to find out the template id of all sharepoint site under one site collection. Follow the powershell command to get website and site template id sharepoint 2019 using powershell. We can use that template id while creating sharepoint site using powershell
$site = Get-SPSite “http://win2016:37344/sites/SPmcse”
foreach ($web in $site.AllWebs){
$web | Select-Object -Property Title,Url,WebTemplate
}
$site.Dispose()

website and site template id sharepoint 2019 | #SharePoint2019, #SiteTemplate
Categories: powershell command, sharepoint templates, Site, Template, website
You must be logged in to post a comment.