Category Archives: sharepoint templates

Save list as template sharepoint 2019 powershell

Most of the cases end user or site owner who actually own the sharepoint site for production server, create list using out of box UI to create sharepoint list. There are certain cases where requirement is to save list as template and create another list using the saved template. Here i will share how to Save list as template sharepoint 2019 powershell. Creating powershell is very fast, easy, less performance issues compared to UI method.

I have a custom sharepoint list “Name: Report 2019”. The number of list items crossed the limit of listview threshold 5000. You got a request to create another list of similar template without including content. This case Save list as template sharepoint 2019 powershell would be helpful. Please find the script below.

Save list as template sharepoint 2019 powershell
#Configuration parameters
$WebURL="http://win-7uqhlrcrq7g:40331/sites/SpTechSupport/"
$ListName="Report 2019"
$TemplateName="Report 2019 Template"
$TemplateFileName="Report2019Template"
$TemplateDescription="Report 2019 List Template"
$SaveData = $true

#Get the Web and List objects
$Web = Get-SPWeb $WebURL
$List = $Web.Lists[$ListName]

#Save List as Template
$List.SaveAsTemplate($TemplateFileName, $TemplateName, $TemplateDescription, $SaveData)
Write-Host "List Saved as Template!"
Advertisements
Advertisements
Save list as template sharepoint 2019 powershell-2
Save list as template sharepoint 2019 powershell-2

Navigate to “List Template” and see, we save list as template.

Save list as template sharepoint 2019 powershell -3
Advertisements
Get template id sharepoint site with powershell

Get template id sharepoint site with powershell

There are many situations or tickets we are getting where we need to Get template id sharepoint site that are currently using. I mean template id of one site currently user is using. Here i am sharing how to Get template id sharepoint site with powershell.

$web = Get-SPWeb http://win-7uqhlrcrq7g:40331/sites/SpTechSupport
$web.WebTemplate + " " + $web.WebTemplateId
$web.close()
Get template id sharepoint site with powershell
Jagannath Bhajan | Bhaba Lagana Lagana ମିଛ ଦୁନିଆ | Odia Bhajan | #JagannathBhajan#OldOdiaBhajan
sharepoint-2016-site-template-1920x1080

sharepoint templates

sharepoint templates

This post describes the list of sharepoint templates and template id present. we can use the powershell command to get sharepoint templates list in sharepoint 2016.

Get-SPWebTemplate | Format-Table -wrap
NameTitle
GLOBAL#0 Global template
STS#0 Team Site
STS# 1 Blank Site
STS#2 Document Workspace
MPS#0 Basic Meeting Workspace
MPS#1 Blank Meeting Workspace
MPS#2 Decision Meeting Workspace
MPS#3 Social Meeting Workspace
MPS#4 Multipage Meeting Workspace
CENTRALADMIN#0 Central Admin Site
WIKI#0 Wiki Site
BLOG#0 Blog
SGS#0 Group Work Site
TENANTADMIN#0 Tenant Admin Site
APP#0 App Template
APPCATALOG#0 App Catalog Site
ACCSRV#0 Access Services Site
ACCSVC#0 Access Services Site Internal
ACCSVC#1 Access Services Site
BDR#0 Document Center
TBH#0 In-Place Hold Policy Center
DEV#0 Developer Site
EDISC#0 eDiscovery Center
EDISC#1 eDiscovery Case
OFFILE#0 (obsolete) Records Center
OFFILE#1 Records Center
OSRV#0 Shared Services Administration Site
PPSMASite#0 PerformancePoint
BICenterSite#0 Business Intelligence Center
PWA#0 Project Web App Site
PWS#0 Microsoft Project Site
POLICYCTR#0 Compliance Policy Center
SPS#0 SharePoint Portal Server Site
SPSPERS#0 SharePoint Portal Server Personal S
SPSPERS#2 Storage And Social SharePoint Porta
SPSPERS#3 Storage Only SharePoint Portal Serv
SPSPERS#4 Social Only SharePoint Portal Serve
SPSPERS#5 Empty SharePoint Portal Server Pers
SPSPERS# 6 Storage And Social SharePoint Porta
SPSPERS#7 Storage And Social SharePoint Porta
SPSPERS#8 Storage And Social SharePoint Porta
SPSPERS#9 Storage And Social SharePoint Porta
SPSPERS#10 Storage And Social SharePoint Porta
SPSMSITE#0 Personalization Site
SPSTOC#0 Contents area Template
SPSTOPIC#0 Topic area template
SPSNEWS#0 News Site
CMSPUBLISHING#0 Publishing Site
BLANKINTERNET#0 Publishing Site
BLANKINTERNET#1 Press Releases Site
BLANKINTERNET#2 Publishing Site with Workflow
SPSNHOME#0 News Site
SPSSITES#0 Site Directory
SPSCOMMU#0 Community area template
SPSREPORTCENTER#0 Report Center
SPSPORTAL#0 Collaboration Portal
SRCHCEN#0 Enterprise Search Center
PROFILES#0 Profiles
BLANKINTERNETCONTER#0Publishing Portal
SPSMSITEHOST#0 My Site Host
ENTERWIKI#0 Enterprise Wiki
PROJECTSITE#0 Project Site
PRODUCTCATALOG#0 Product Catalog
COMMUNITY#0 Community Site
COMMUNITYPORTAL#0 Community Portal
GROUP#0 Group
POINTPUBLISHINGHUB#0 PointPublishing Hub
POINTPUBLISHINGPERSONAL#0PointPublishing Personal
POINTPUBLISHINGTOPIC#0PointPublishing Topic
SRCHCENTERLITE#0 Basic Search Center
SRCHCENTERLITE#1 Basic Search Center
visprus# 0 Visio Process Repository
GLOBAL#0 Global template
STS#0 Team Site
STS#1 Blank Site
STS#2 Document Workspace
MPS#0 Basic Meeting Workspace
MPS#1 Blank Meeting Workspace
MPS#2 Decision Meeting Workspace
MPS#3 Social Meeting Workspace
MPS#4 Multipage Meeting Workspace
CENTRALADMIN#0 Central Admin Site
WIKI#0 Wiki Site
BLOG#0 Blog
SGS#0 Group Work Site
TENANTADMIN#0 Tenant Admin Site
ACCSRV#0 Access Services Site
ACCSRV#1 Assets Web Database
ACCSRV#3 Charitable Contributions Web Database
ACCSRV#4 Contacts Web Database
ACCSRV#6 Issues Web Database
ACCSRV#5 Projects Web Database
BDR#0 Document Center
OFFILE#0 (obsolete) Records Center
OFFILE#1 Records Center
OSRV#0 Shared Services Administration Site
PPSMASite#0 PerformancePoint
BICenterSite#0 Business Intelligence Center
PWA#0 Project Web App Site
PWS#0 Microsoft Project Site
SPS#0 SharePoint Portal Server Site
SPSPERS#0 SharePoint Portal Server Personal Site
SPSMSITE#0 Personalization Site
SPSTOC#0 Contents area Template
SPSTOPIC# 0 Topic area template
SPSNEWS#0 News Site
CMSPUBLISHING#0 Publishing Site
BLANKINTERNET#0 Publishing Site
BLANKINTERNET#1 Press Releases Site
BLANKINTERNET#2 Publishing Site with Workflow
SPSNHOME#0 News Site
SPSSITES#0 Site Directory
SPSCOMMU#0 Community area template
SPSREPORTCENTER#0 Report Center
SPSPORTAL#0 Collaboration Portal
SRCHCEN#0 Enterprise Search Center
PROFILES#0 Profiles
BLANKINTERNETCONTAINER#0Publishing Portal
SPSMSITEHOST#0 My Site Host
ENTERWIKI#0 Enterprise Wiki
SRCHCENTERLITE#0 Basic Search Center
SRCHCENTERLITE#1 Basic Search Center
SRCHCENTERFAST#0 FAST Search Center
visprus#0 Visio Process Repository
sharepoint templates
sharepoint-2016-site-template-1109x1040
sharepoint-2016-site-template-1106x1040.jpg
sharepoint-2016-site-template-1100x523