Export/Import SharePoint Terms Store using PowerShell Commands
Export-SPTerms and Import-SPTerms:
Exporting and importing spterms needs extra cmdlets, for getting extra set of cmdlets you will deploy wsp file into your sharepoint environement. You can get wsp file from
http://www.thelapointes.com/blog/Lapointe.SharePoint2010.Automation.wsp
After deploying wsp file , verify cmdlets added or not
Export-SPTerms -TaxonomySession "Central admin url" -OutputFile "Your xml file path"
Ex:Export-SPTerms -TaxonomySession "http://myadmin:2324/" -OutputFile "c:\terms.xml"
This will export spterms to xml file you have mentioned.
For importing spterms(collected from other source) from xml :
Before import you just need change 3-parameters in the source xml provided.Theyare
Note: Above 3-steps you can easily do by exporting your local terms to xml and from the resulted xml copy all these 3-attributes.
And also change the user field values in the source xml to your local users(in the store system where your exporting)
Export-SPTerms and Import-SPTerms:
Exporting and importing spterms needs extra cmdlets, for getting extra set of cmdlets you will deploy wsp file into your sharepoint environement. You can get wsp file from
http://www.thelapointes.com/blog/Lapointe.SharePoint2010.Automation.wsp
After deploying wsp file , verify cmdlets added or not
- Go to Sharepoint management console
- Type Export-SPTerms (or) Import-SPTerms if your asked for any information then your cmdlets if you get error terms cmdlets are not added.
Export-SPTerms -TaxonomySession "Central admin url" -OutputFile "Your xml file path"
Ex:Export-SPTerms -TaxonomySession "http://myadmin:2324/" -OutputFile "c:\terms.xml"
This will export spterms to xml file you have mentioned.
For importing spterms(collected from other source) from xml :
Before import you just need change 3-parameters in the source xml provided.Theyare
- Open the source xml, in that node(Termstore under the node Termstores) has name attribute, the name attribute value and your local Managed metada source must be same.If not change it as per your local term store name
- Change Id attribute and give the id of your local Termstore
- Change SystemGroup attribute value to your local system group
Note: Above 3-steps you can easily do by exporting your local terms to xml and from the resulted xml copy all these 3-attributes.
And also change the user field values in the source xml to your local users(in the store system where your exporting)
No comments:
Post a Comment