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!
- Download the application templates for WSS 3.0:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5807b5ef-57a1-47cb-8666-78c1363f127d&displaylang=en - Deploy the templates, first deploy the Application Template Core WSP
stsadm -o addsolution -filename ApplicationTemplateCore.wsp
stsadm -o deploysolution -name ApplicationTemplateCore.wsp -allowgacdeployment –immediatestsadm -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.
- 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:
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$theSiteColl = New-Object Microsoft.SharePoint.SPSite("http://yourserver")
$theWeb = $theSiteColl.OpenWeb()
$theWeb.GetAvailableWebTemplates(1033) | select name, title - 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.
Letzte Kommentare