Script to find all Site Templates used to
create sites in SharePoint
In SharePoint 2013 from the Central
Administration there is no option to check what site template was used to create
a site. If you want to check which template was used to create a particular
site, you can use the following PowerShell script to find out.
stsadm -o enumallwebs > EnumAllWebs.xml 2>&1
The output is redirected to an xml file and is
as below. >& is a command redirection operator. Stderr is handle 2, and stdout
is handle 1. Therefore, 2>&1 means redirect stderr to stdout.
Some of the interesting things are marked.
Since I have used two databases there are two nodes for Database. InSiteMap =
True means the site is not orphaned. Template Name gives the name of template on
which the site is based.
Figure: EnumAllWebs as XML File