In my recent project, I have to migrate admin approved InfoPath forms in SharePoint 2007 to SharePoint 2010 . Admin approved forms are deployed as features at farm level. They are under 12 hive folder named with GUIDs.
After some googling, I found handy STSADM and Powershell commands. Using these commands we can easily package and generate a CAB file that can exported and imported in other server farm.
Migrate admin approved InfoPath forms MOSS 2007 to SharePoint 2010:
STSADM command to export admin approved Infopath forms
stsadm -o exportipfsadminobjects -filename C:\Export.CAB
PowerShell command to import from CAB file
After importing the forms to SharePoint 2010, we need to update links such as data connections, submissions links etc.
Here are some useful Powershell commands which might save some time in updating links.
Powershell commands to update links:
This blog is written to document the information which i have gathered just as a quick reference for my next migration of admin approved Infopath forms in SharePoint. Here is an other helpful blog which contains all the detailed steps in upgrading Admin approved Infopath forms from SharePoint 2010 to 2013.