Understanding SharePoint Site Templates and Their Location
SharePoint, a powerful collaboration and document management platform, allows users to create sites with predefined structures and content using site templates. Understanding where these templates are located and how to manage them is crucial for effective SharePoint administration and customization. Let's delve into the world of SharePoint site templates and explore their location in detail.
Default SharePoint Site Templates
SharePoint comes with a set of default site templates that cater to various business needs. These templates are stored in the 15 hive, which is the root of the SharePoint installation. The location of the 15 hive is typically C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\ on 64-bit systems and C:\Program Files (x86)\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\ on 32-bit systems.
Within the 15 hive, you'll find the XML folder containing the definition files (.xml) for each site template. These files describe the site's structure, lists, libraries, and other features. For example, the Team Site template's definition file is named TEAMSITE.XML.

Custom SharePoint Site Templates
In addition to the default templates, SharePoint allows users to create and save custom site templates. Custom templates are stored in the Site Templates gallery of the Site Collection where they were created. To access the Site Templates gallery, navigate to the Settings gear icon and select Site Settings. Then, under the Web Designer Galleries section, click Site Templates.
Custom site templates are saved as .wsp (Web Solution Package) files, which are essentially cabinet (.cab) files containing the site's definition and other required components. These .wsp files are stored in the Site Templates library of the Site Collection. The URL for this library is typically http://your-site-collection-url/_catalogs/oslo/SiteTemplates/.
Managing SharePoint Site Templates
To manage SharePoint site templates, you can use the SharePoint Management Shell or the SharePoint Object Model. These tools allow you to create, delete, and export site templates programmatically. For example, to export a site template using the SharePoint Management Shell, you can use the Export-SPWeb cmdlet with the -Path parameter specifying the location where you want to save the .wsp file.

You can also use third-party tools and solutions to manage SharePoint site templates more efficiently. These tools often provide user-friendly interfaces and additional features for template management, such as versioning and approval workflows.
Best Practices for SharePoint Site Templates
- Version Control: Keep track of changes to your custom site templates by versioning them. This helps you maintain a history of updates and revert to previous versions if needed.
- Template Reuse: Reuse and update existing site templates instead of creating new ones from scratch. This saves time and ensures consistency across your SharePoint environment.
- Template Testing: Thoroughly test your custom site templates before deploying them to production environments. This helps identify and resolve any issues before they impact end-users.
In summary, understanding the location and management of SharePoint site templates is essential for effective SharePoint administration and customization. By leveraging default templates, creating custom templates, and following best practices, you can streamline your SharePoint deployment and ensure a consistent user experience.























