|This method of converting SharePoint 2007 list templates for use in SharePoint 2010 is not supported by Microsoft. Use at your own risk. Your mileage may vary.|
SharePoint 2007 List Templates in SharePoint 2010
I recently needed to move a number of list templates from SharePoint 2007 to SharePoint 2010. Unfortunately, SharePoint 2010 just doesn’t support this. The only supported method to move these lists across is to upgrade the whole content database. That just wasn’t an option for me, so I needed to find another way.
Luckily, I discovered an excellent blog post by Tom (Belgium) that describes a method for getting SharePoint 2007 list templates working in SharePoint 2010.
Tom’s basic method is:
- Extract the contents of the STP file (it’s really just a CAB file)
- Edit the manifest.xml file, changing the ProductVersion element from 3 to 4
- Repackage the STP file
I have had success with this method for both templates for lists and document libraries.
Automating the process with PowerShell
After having success with Tom’s method, I decided to see if I could automate the process since I had a number of list templates I needed to convert. I am by no means a PowerShell guru, but the following script gets the job done:
You can also download the script here: UpgradeListTemplate.ps1