Monday, June 8, 2009

SharePoint Site Templates

I was recently asked to change the basic template used when creating a site for the first time from a Blank Site to Team Site.  As the site was created using a PowerShell script it required finding out which code should be used for the sitetemplate option in the STSADM command.

# Create new WebSite
stsadm.exe -o createsite -url $spwebsite -title "My Team Site" -ownerlogin entirl\$username -owneremail sharepointadmin@enterprise-ireland.com -sitetemplate STS#1

Friendly Name Template
Team Site STS#0
Blank Site STS#1
Document Workspace STS#2
Wiki Site WIKI#0
Blog BLOG#0
Basic Meeting Workspace MPS#0
Blank Meeting Workspace MPS#1
Decision Meeting Workspace MPS#2
Social Meeting Workspace MPS#3
Multipage Meeting Workspace MPS#4
Document Center BDR#0
Records Center OFFILE#1
Personalization Site SPSMSITE#0
Site Directory SPSITES#0
Report Center SPREPORTCENTER#0
Search Center with Tabs SRCHCEN#0
Search Center SRCHCENTERLITE#0
Publishing Site CMSPUBLISHING#0
Publishing Site with Workflow BLANKINTERNET#2
News Site SPSNHOME#0

No comments: