Tuesday, 29 June 2010

Create a new Managed Metadata term with synonym in SharePoint 2010 using PowerShell

Use this script if you want to create a new term in the SharePoint 2010 Managed Metadata service with PowerShell. Incidentally, the Managed Metadata CSV import format provided out-of-the-box in SharePoint 2010 does not support synonyms, so you could easily use this code along with the Import-Csv PowerShell cmdlet to come up with a replacement format if you needed to support synonyms (will get around to posting a script at some point):

#Connect to Central Admin
$taxonomySite = get-SPSite http://centraladminsite:port

#Connect to Term Store in the Managed Metadata Service Application
$taxonomySession = Get-SPTaxonomySession -site $taxonomySite
$termStore = $taxonomySession.TermStores["Managed Metadata Service"]
write-host "Connection made with term store -"$termStore.Name

#Connect to the Group and Term Set
$termStoreGroup = $termStore.Groups["Group Name"]
$termSet = $termStoreGroup.TermSets["Term Set Name"]

#Create term, term description, and a synonym
$term = $termSet.CreateTerm("Test Term", 1033)
$term.SetDescription("This is a test", 1033)
$term.CreateLabel("This is a test synonym", 1033, $false)

#Update the Term Store
$termStore.CommitAll()

#Dispose of taxonomy site object
$taxonomySite.Dispose()

79 comments:

  1. I run this and i get an error saying "Cannot index into a null array". Any idea?

    ReplyDelete
  2. Very informative post. I sometimes do presentations on SharePoint and was wondering if I could use your Print List example in my presentations and refer my audience to your website for further info.

    ReplyDelete
  3. We prefer to honor several other net sites around the internet, even when they arent linked to us, by linking to them. Below are some webpages worth checking out.

    ReplyDelete
  4. These exercises will permit you to create much more lean muscle throughout your complete body,
    so you lose fat in all your difficulty zones. Boneka Wisuda

    ReplyDelete
  5. Excellent article. I will be experiencing some of these issues as well..

    ReplyDelete
  6. Your whole body system should remain in a silent and tranquil environment in order to help you correctly loosen up as you
    massage your foot.

    ReplyDelete
  7. I have had a difficult time clearing my mind in getting
    my thoughts out there. I truly do enjoy writing however it just
    seems like the first 10 to 15 minutes are generally
    lost just trying to figure out how to begin. Any ideas or tips?

    Many thanks!

    ReplyDelete
  8. Hal ini sangat mudah untuk berbicara tentang optimasi mesin pencari tapi apakah itu benar-benar layak menghabiskan lebih dari itu? Ini sangat tergantung pada seberapa banyak Anda berhati-hati dengan bisnis Anda sendiri dan apa lagi yang dapat Anda lakukan untuk mendapatkan keuntungan maksimal! Sementara Anda terlibat dalam bisnis online, jasa seo hanya merancang situs web tidak sesuai dengan kebutuhan Anda. Bisnis Anda menuntut sesuatu yang ekstra! Untuk mendapatkan kualitas bisnis dari situs Anda, diperlukan untuk mengoptimalkan situs web jasa seo. Berdasarkan apa?

    Sementara Anda berurusan dengan klien online, jasa seo Anda perlu mendapatkan kunjungan berkualitas ke situs Anda. Lalu lintas maksimal berasal dari mesin pencari Google, Yahoo dll karena itu diharuskan untuk mengoptimalkan website sesuai keramahan mesin pencari. jasa seo. Berdasarkan apa?
    Optimalisasi situs web bukanlah hal yang kecil seperti yang diketahui semua orang, daripada mengandalkan pengoptimalan atau takdir rumah Anda di situs web, mempekerjakan pakar SEO khusus jasa seo. Berdasarkan apa?
    yang dapat mengoptimalkan situs web dengan bijaksana.

    SEO Itsy Bitsy:

    Ini sangat layak untuk diinvestasikan untuk optimasi mesin pencari. Tapi apakah Anda yakin telah menghabiskan dengan benar untuk situs web? jasa seo. Berdasarkan apa?
    Apakah Anda tahu tarif yang Anda butuhkan untuk membayar pengoptimalan agar pekerjaan selesai? Jika Anda tidak yakin dengan semua ini, jasa seo. Berdasarkan apa?
    Anda pasti perlu dipandu.

    Dianjurkan selalu untuk menyewa dedicated SEO sambil merencanakan untuk mengoptimalkan website. Umumnya biaya SEO sesuai pekerjaan mereka dalam istilah normal. jasa seo. Berdasarkan apa?
    Tarif tagihan bervariasi tergantung pada waktu kerja mereka, sumber daya yang digunakan, jumlah SEO dll. jasa seo Juga, biaya bervariasi berdasarkan jam kerja, per basis proyek, per kontrak atau basis penelitian kata kunci. Yang menarik, lebih murah memilih konsep per jam. jasa seo. Berdasarkan apa?
    Tapi apakah Anda benar-benar berpikir bekerja selama satu jam akan cukup untuk situs web? jasa seo Sebenarnya tidak.

    ReplyDelete
  9. Thanks for this article. It contains the information i was searching for and you have also explained it well. We are also a service provider that deal in the assignment writing help sector. Agen Casino Sbobet Online

    ReplyDelete
  10. Hi there, I do believe your web site may be having internet browser compatibility issues.
    When I look at your website in Safari, it looks fine however, if opening in IE, it's got some overlapping issues.
    I simply wanted to provide you with a quick heads up!
    Aside from that, fantastic site!
    -------------------
    BANDARQQ

    ReplyDelete
  11. This post is quite informative for blogging and we all need to rethink about this issue
    ||Play happy wheels Are you ready||Now Free Happywheels happywheels.in
    ||Fireboy and watergirl game 4 online at fireboywatergirl.co||
    ||total Jerkface happy wheels game||

    ReplyDelete

  12. I don't apperceive what it is about the bendable blow and matte finish, but I accept a anemic atom for printed suede Christisn Louboutin Outlet. One of the best brands to cull this off is YSL Wallet Outlet. I accept to acquaint you about a backpack attraction of mine. I am in fact mad at myself that I did not splurge on the Ralph Lauren Polo Outlet Croc Muse Two which has two colors that I admire with a sueced croc pattern. To see a formed suede accomplishment off a Red Bottoms Outlet that I already adore, my affection melts. Replica Watches are additionally pretty reflective of their user's persona. Amazing furthermore multi-colored Replica Watches are commonly worn because of the younger. Conversely, exquisite dress Swiss Rolex Replica are regularly sported by highly developed gentlemen. And then usually there's the luxurious Swiss Replica Watches worn by the individuals who're properly to complete. Check out observing your mates furthermore you can before long see how the layouts are actually ranging.

    ReplyDelete
  13. شركة الاوائل لخدمات نقل الاثاث والعفش
    تعد شركتنا شركة محترفة بمجال نقل الاثاث
    شركتنا تقوم بكل اعمال الاثاث والعفش من التغليف والتنظيف والنقل
    بالمملكة وخارج المملكة
    شركة نقل اثاث بالرياض

    ReplyDelete
  14. شركة ركن الهدى (0556754301) دائما تقدم خدمات منزلية على اتم الاستعداد فهى اكبر شركة تنظيف شاملة بالمنطقة الشرقية حيث تشمل تنظيف المنازل و الفلل و البيوت و الخزانات و المساجد حيث تتميز بخبراتها الكبيرة فى كافة مجالات التنظيف كما لديها افضل فريق عمل متخصص فى كل انواع التنظيف و المكافحة فتواصلوا معنا على رقم الشركة
    شركة تنظيف بالقطيف
    شركة تنظيف موكيت ومجالس بالقطيف
    شركة تنظيف شقق وفلل بالقطيف
    شركة تنظيف خزانات بالقطيف
    شركة مكافحة حشرات بالقطيف
    مكافحة النمل الابيض بالقطيف
    شركة تسليك مجارى بالقطيف
    شركة كشف تسربات المياه بالقطيف

    ReplyDelete
  15. تعتبر شركة ركن الامانة (0505561372) للخدمات المنزلية من اهم الشركات التى تقدم لعملائنا الكرام المجالات و الارشادات بعمليات التنظيف المستمرة حيث تستخد الشركة افضل الاجهزة و المواد التنظيف الحديثة لنقوم بعمليات التنظيف و المكافحة حيث نقوم بازالة البقع بكل بساطة و بدون عناء فهدفنا هو ارضاء العميل فاتصلوا بنا على رقم الشركة
    شركة تنظيف خزانات بابها
    شركة تنظيف مجالس بابها
    شركة تنظيف بابها
    شركة تسليك مجارى بابها
    شركة كشف تسربات المياه بابها
    شركة مكافحة حشرات بابها
    شركة عزل اسطح بابها
    شركة عزل خزانات بابها
    شركة نقل اثاث بابها
    شركة تنظيف منازل بابها

    ReplyDelete

  16. شركة ركن الهدى للخدمات المنزلية بالجبيل 0556754301 افضل شركة تعمل فى جميع المجالات بالجبيل
    شركة كشف تسربات المياه بالإحساء تعمل على وضع الحلول التي تساعد على عدم وجود مشاكل عند بناء عقار
    لدينا أجهزة حديثة تقيس رطوبة الأرض أو التربة المراد البناء عليها إن كانت أرض رسوبية بها بئر مياه فهذه مشكلة تتسبب في ظهور ترسبات المياه.
    أسفل الأرض فإنه يجب سحبها قبل البناء تجنبا لحدوث مشكلة تسربات المياه اذا وجد مياهكم
    ات لمنع حدوث تسرب المياه يجب دراسة نوع الأرض والتربة التي سيتم البناء عليها.
    شركة تنظيف بالجبيل
    شركة تنظيف خزانات بالجبيل
    شركة تنظيف شقق بالجبيل
    شركة تنظيف موكيت بالجبيل
    أسفل الأرض فإنه يجب سحبها قبل البناء تجنبا لحدوث مشكلة تسربات المياه اذا وجد مياهكم
    ات لمنع حدوث تسرب المياه يجب دراسة نوع الأرض والتربة التي سيتم البناء عليها.
    شركة تنظيف مجالس بالجبيل
    شركة مكافحة حشرات بالجبيل
    شركة مكافحة النمل الابيض بالجبيل
    تسربات المياه هي مشكلة يعاني منها العديد من الأشخاص، وهو وجود جدار أو الأرضية بها تجمع مياه،
    من أسباب تسربات المياه أن البناء أو المنزل قد تم بناؤه على أرض رسوبية.
    شركة كشف تسربات المياه بالجبيل
    شركة تسليك مجارى بالجبيل
    تقدم شركتنا خدمة رائعة شاملة كل التخصصات من تنظيف ومكافحة وكشف تسربات وعزل اسطح وباسعار حصرية لا مثيل لها نحن رواد شركات التنظيف والمكافحة بالمملكة لدينا اجود مواد تنظيف معروفة عالميا واحدث مكانس ومعدات لدينا المواد الخاصة بتنظيف المجالس والارضيات واجود معطرات مستوردة من الخارج ولدينا اجود وأأمن مبيدات حشرية حيث نقوم بالقضاء عليها نهائيا فمعنا تنعم بحياتك فى ظل مكان نظيف خالى تماما من الاتربة والحشرات

    ReplyDelete
  17. First of all, we provide escort service in Mumbai at the right time and no one can do it because we are ready to provide 24-hour escort service in Mumbai. The way we are promoting the Mumbai Escort service is hardly another Escort agency will be able to provide Escorts services for Mumbai in this manner.
    Mumbai Escorts
    Mumbai Escorts Service
    Escorts Service In Mumbai

    ReplyDelete
  18. También puede visitar una tienda de ladrillo y mortero de Michael Kors o su sitio web y comprar directamente un bolso Michael Kors desde allí. Usar un bolso de Michael Kors les permite a los demás reconocer que el habitante urbano educado toma la moda realmente con seriedad. Los bolsos de hombro son particularmente refinados y elegantes.

    {Bolsas Michael Kors Precios | Bolsos Michael Kors Outlet | Michael Kors Rebajas}

    En vacker konstnärlig skapelse av vävt läder, som ger ett skalskaligt utseende - liknar en snakeskin eller fiskhud, linjer utsidan av påsen. Läderens bältros är små läderringar. Det finns också gyllene accenter på väskan. Slutresultatet är svagt liknar kedjepost.

    {Michael Kors Rea | Michael Kors Väska Rea | Michael Kors Plånbok}

    ReplyDelete
  19. Thank you for sharing an interesting and very useful article. And let me share an article about health here I believe this is useful. Thank you :)

    Cara Mengobati Penyakit Tipes Super Ampuh
    Cara Mengobati Tukak Lambung secara Alami
    Cara Mengatasi Jantung Koroner secara Alami

    ReplyDelete
  20. I would like to thanks for sharing high value and informative article with us. And i hope you'll sharing more idea's and keep writing more like this one.

    cara mengobati asam lambung
    cara mengobati herpes
    cara menyembuhkan liver
    cara mengobati keputihan
    cara mengobati fungsi ginjal rusak
    cara mengobati vertigo
    obat penghilang bekas luka

    ReplyDelete
  21. Get Mumbai Escorts Service for erotic fun and satisfaction at reasonable rates. Call now 0000000000 for full happiness by Hot Mumbai Call Girls.
    Mumbai escorts
    Mumbai Escorts
    Mumbai escorts
    Mumbai escorts
    Mumbai escorts
    Mumbai Escorts

    ReplyDelete
  22. Delhi escorts introduces the most lovable and erotic independent Delhi escorts services to provide you memorable intimacy with call girls in Delhi.
    Call Girl In Delhi

    ReplyDelete
  23. that things can possibly work on this manner as well. Thank you for sharing your opinion

    obat infeksi saluran pernafasan akut

    ReplyDelete
  24. Mumbai escorts for 100% satisfaction at cheap rate. High profile andheri east escorts college models avail here with mumbai call girls & escort service in ...
    Mumbai Escorts Services
    Bandra Call Girls
    Mumbai Escorts Agency
    Mumbai Fmale Escorts
    Mumbai Escorts
    Mumbai Call Girls
    Escorts In Mumbai
    Andheri Call Girl
    Navi Mumbai Escorts
    Call Girls In Mumbai

    ReplyDelete
  25. Delhi escorts are considered best escorts in India.If you are in Delhi and looking for High profile escorts So now you should stop your search here because it's a right choice for you.
    Escorts In Delhi
    Call Girls In Delhi

    ReplyDelete
  26. A beautiful purse or handbag from Coach Outlet Online can last for many years, and represent a great overall value.
    There are Michael Kors Bags Outlet in a large number of shopping malls located throughout the country.
    Cheap Michael Kors Bags is a great way to determine which models best suit your needs.
    Official Coach Factory Outlet Online all strive to provide comfort and convenience for their owners and the seams are double-stitched for maximum durability.
    Michael Kors Factory Store, has one of the most popular handbag and accessory lines on the market today.
    Coach Handbags Wholesale says a lady is classy, elegant and sophisticated.
    Coach Store Near Me trends come and go, but a Coach stands the test of time.
    The official Michael Kors Handbags On Sale Outlet regularly posts various handbags being offered for sale.
    Compare your Coach Bags On Sale Outlet to the logo provided on the website to make sure it is similar.
    All Michael Kors Outlet Online Store have serial numbers.

    ReplyDelete
  27. No matter what type of Michael Kors Bags Outlet each individual got, they all had one thing in common. We all know that getting something on sale is like winning a mini lottery, but to find a name brand handbag like Michael Kors Black Friday Sale for instance, discounted is like a slice of heaven on earth. I have personally attacked my husband with hugs and kisses when finding Official Coach Outlet Online at discounted prices.

    Michael Kors Factory Outlet stores can be found in malls all over. MK Outlet and other Coach merchandise can also be found in some boutiques. Inspired by the same material baseball gloves are made from, these Coach Bags On Sale Online are versatile and stylish. Since it's conception, the Michael Kors Handbags Outlet has been produced into a variety of designs, colors, shapes, and styles that have won top pick of millions of women the world over.

    New Michael Kors Bags are the most sought after handbag. Since Coach Outlet Online is one of the most recognized name brands in the world of fashion, you will find A-list celebrities down to small girls wearing them.

    tags:Coach Outlet|Coach Bags Factory Outlet|Coach Purses Outlet

    ReplyDelete
  28. I Am Thankful To You For Create Such Kind Of Informative Website. Really It Is Useful According Your Current Topic. I Suggest To Keep This Continue For Those People, Who Are Looking For Such Kind Of Niche. After See Your Niche I Have Recommended Your Website With My Friends Also.
    I am Arpita Jain. I run my own Mumbai Hotel Sex . We provide escort services in low cost according the current market price. Our service is super, because we know very well the personal requirement of our each customer. We are comfortable to provide our Andheri Escorts Service at your home or in Hotel. Visit- http://www.arpitajain.org/mumbai-hotel-sex/
    Call- +91 9OO4458359
    Mumbai Hotel Sex
    Mumbai Escorts
    Bandra Escorts
    Juhu Escorts
    Mumbai Call Girls
    Escort Service In Mumbai
    Andheri Escorts


    ReplyDelete
  29. I Saw Your Website Carefully. Thanks For Create Such Kind Of Informative Website. Your All Content Is Relevant To Your Subject. I Say Keep It Continue, Because Your Website And Subject Is Meaningful For The Users. I Have Recommended Your Website With My Friends Also. I Am Ritu Sharma. I Am An Independent Mumbai Escort Girl. I Deal In Mumbai Escorts service. I Am Very Hot And Sexy. Being A Mumbai Escort Girl I Have Five Years’ Experience. That’s Why I Understand The Each Personal Needs Of My Every Client. My Service Charge Is Low And Service Is Super. You Can Avail My VIP Mumbai Escorts Service At Your Home Or In Hotel. I Am Comfortable To Provide Mumbai Escorts Service In Local And Outside Also. Visit www.escortservicemumbai.net Call +91- 9OO4OO9481
    Visit The Links Below And Have A Look At My Various Mumbai Escort Services-
    Mumbai Escorts
    Mumbai Call Girls
    Mumbai Escorts In Vile Parle
    Bandra Escorts
    Juhu Escorts
    Andheri Escorts
    Mumbai Escorts In Colaba

    ReplyDelete
  30. I Am Ritu Sharma. I Run my Own Mumbai Call Girls Service. I Am Very Hot And Sexy. I Have Five Years’ Experience. That’s why I Understand the Each Personal Needs of My Every Client. My Service Charge Is Low And Service Is Super. You Can Avail My VIP Escorts Service At Your Home Or In Hotel. I Am Comfortable To Provide Escorts Service In Local And Outside Also.
    Visit http://www.escortservicemumbai.net/mumbai-call-girls/
    Call +91- 9OO4OO9481

    Visit The Links Below And Have A Look At My Various Escort Services-
    Mumbai Escorts
    Mumbai Escorts In Lokhandwala
    Escort Service In Gore Gaon
    Juhu Escorts
    Andheri Escorts
    Bandra Escorts
    Mumbai Call Girls


    ReplyDelete
  31. Alkhadim LLC as Accounting Firms provides a full range of computerized financial accounting services, bookkeeping services for company in UAE.

    ReplyDelete