I want to copy the exact hierarchy (as seen below) of Groups, termsets and all level of terms from one MMS to another MMS:

enter image description here

I am looking for sample server side API code to perform this from where i can get an idea?

I have used following command to export whole the termstore:

Export-SPTerms -TermStore (Get-SPTaxonomySession -Site $sourceMMSWebApp).TermStores[0] -OutputFile "c:\temp\termStore.xml"

now, i want to import all the groups to destination MMS, which command should i use?

1 Answer 1


You can use Script Created by http://blog.falchionconsulting.com/index.php/downloads/

There is a cmdlet that allows to export terms into an XML file and another cmdlet that allows importing from xml file.



  • I don't know who down voted. If you read the question. OP is asking how to move term from one MMS to Another. Apr 9, 2015 at 19:00
  • thanks for this useful info: I have updated question, can you please look into that?
    – SPBeginer
    Apr 10, 2015 at 13:23
  • Use the second link..falchionconsulting.com/PowerShellViewer/… Apr 10, 2015 at 13:24
  • thanks! i am exporting group one by one, but i am getting this error: Specified argument was out of the range of valid values. Parameter name: lcid, how i fix this
    – SPBeginer
    Apr 10, 2015 at 14:15
  • @SPBeginer it seems your error contains < - better update it in question. Apr 10, 2015 at 14:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.