Deploy Fab40 automatically via script


If you want to show all Application Templates for WSS 3.0 (aka Fab40) to a customer it can be very time consuming to deploy all the templates manually and create all the websites by hand.

Solution: Script it!

  1. Download the application templates for WSS 3.0:
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5807b5ef-57a1-47cb-8666-78c1363f127d&displaylang=en
  2. Deploy the templates, first deploy the Application Template Core WSP
    1. stsadm -o addsolution -filename ApplicationTemplateCore.wsp
      stsadm -o deploysolution -name ApplicationTemplateCore.wsp -allowgacdeployment –immediate

      stsadm -o execadmsvcjobs

      stsadm -o copyappbincontent

      If you encounter an error with this do the deploy again with parameter –force

      stsadm -o deploysolution -name ApplicationTemplateCore.wsp -allowgacdeployment -immediate -force

      Or use this script:

      Just rename the txt file to *.bat and change the paths for your environment.

       

  3. After this, create the Websites (webs) with the templates. You need the ID of the site templates. You can find out with this powershell script:
  4. [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") 
    $theSiteColl = New-Object Microsoft.SharePoint.SPSite("http://yourserver") 
    $theWeb = $theSiteColl.OpenWeb() 
    $theWeb.GetAvailableWebTemplates(1033) | select name, title 

  5. Create the sites with stsadm:

stsadm -o createweb -url http://yourserver/CallCenter -lcid 1033 -title CallCenter -sitetemplate callcenter#0

 

Or use this script
Just rename the txt file to *.bat and change the paths for your environment.

Advertisements

About binoeder

SharePoint and Project Server Consultant
This entry was posted in SharePoint, Tools and tagged , , . Bookmark the permalink.

One Response to Deploy Fab40 automatically via script

  1. Adam says:

    Fab 40 templates for SharePoint 2010/2013 are available at

    http://www.sharepointwebstore.com

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s