Install a Custom Site Template for Team Foundation Server


 

Add Template

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm -o addtemplate -filename C:\tfs\XXX-VSTFS\XXXCMMI.stp -title VSTS_XXX_CMMI

Operation completed successfully.

IIS must be restarted before this change will take effect. To restart IIS, open
a command prompt window and type iisreset.

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>iisreset

Attempting stop…
Internet services successfully stopped
Attempting start…
Internet services successfully restarted

List Templates

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm -o enumtemplates

VSTS_MSFAgile – Language: 1033 – Site Template: _GLOBAL_#0 – Template Id: 1
VSTS_MSF_CMMI – Language: 1033 – Site Template: _GLOBAL_#1 – Template Id: 1
VSTS_XXX_CMMI – Language: 1033 – Site Template: _GLOBAL_#2 – Template Id: 1

Process Template

You can then reference the SharePoint site template by name in the WssTasks.XML for your Process Template

<?xml version="1.0" encoding="utf-8"?>
<tasks>
  <task id="SharePointPortal" name="Create Sharepoint Portal" plugin="Microsoft.ProjectCreationWizard.Portal" completionMessage="Project site created.">
    <taskXml>
      <Portal>
        <site template="VSTS_XXX_CMMI" language="1033" />

 

About Wes MacDonald

Wes MacDonald is a DevOps Consultant for LIKE 10 INC., a DevOps consulting firm providing premium support, guidance and services for Azure, Microsoft 365 and Azure DevOps.

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: