SharePoint PowerShell to Pull Information about template used in the subsite/webs

There might a request for you to provide the web template within your sharepoint environment. in scenario, like you’re doing SharePoint 2010 migration and you’d like to know the distribution of the web template used within your sharepoint farm. The following PowerShell will be able to give the necessary information by enumerating all the site…

1