How to retrieve the site template of a SharePoint Online site

  • Last update on October 18th, 2023

In this article, we will delve into the process of retrieving the Site Template for a SharePoint Online site using PowerShell, Page Source, and CoreView.

1. Using PowerShell

#Set Parameters
$TenantAdminURL = "https://contoso-admin.sharepoint.com"
$SiteURL="https://Contoso.sharepoint.com/sites/TestSite"
#Connect to SharePoint Online
Connect-SPOService -Url $TenantAdminURL -Credential (Get-Credential)
#Get Site Template of the Site Collection
(Get-SPOSite -Identity $SiteURL).Template

2. Using Page Source

  • Open your SharePoint Online site collection or subsite in a web browser.
  • Navigate to the “View” option, then select “Page Source”.
  • Within the page source, search for “webTemplateConfiguration”.
  • Next to “webTemplateConfiguration”, you'll find the value for your site template.

3. Using CoreView

  • Go to the CoreView portal.
  • Under “REPORTS”, select “SharePoint” and choose “SharePoint site usage”. 
  • Ensure to scroll down and check if the “Template” and “Root web template” columns are selected. If not, you can select them from the list. By doing so, you'll be able to access the necessary information.