.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> PowerShell >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Using PowerShell get all the languages packs installed on web servers in the SharePoint 2010 farm

Posted By:Vijai Anand. R       Posted Date: May 14, 2011    Points: 40    Category: PowerShell    URL: http://www.dotnetspark.com  

In this we will be seeing how to get all the languages packs installed on web servers in the SharePoint 2010 farm using PowerShell
 

 

Steps Involved:

·         Go to Start => All Programs => Microsoft SharePoint 2010 Products =>SharePoint 2010 Management Shell.

·         Run as an administrator.

·         Script:

$site=get-spsite "http://servername:22222/sites/Test/"$web=$site.RootWeb

$installedLanguages = $web.RegionalSettings.InstalledLanguages

foreach ($language in $installedLanguages)

{

   write-host -f green "Name: " $language.DisplayName "LCID: " $language.LCID

}                      

 

 



     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend