Install SharePoint 2010 Language packs

Hi Readers,

We have to install 11 language packs in our share point environment that consists of  several servers.

Here is the method that we used to reduce the effort.

1.  Downloaded all the language packs (Foundation & Server)

languagepack1

Don’t forget to create logs folder.

For example:- 

Below screen shot for Chinese simplified folder.

lang2

2. Create installfolders.txt file with below contents:

ChineseSimplified
ChineseTraditional
French
German
Italian
Japanese
Korean
Portugese
Protugese(Brazil)
Spanish
Thai

3. run the Powershell script in SharePoint management shell on each SharePoint server.

Note:- if you are getting warning popup as you are executing a .exe file.

Open gpedit.msc from run, edit the policy as below:

lang3

4. After script finishes, check control panel if all the language packs are installed (on all sp servers)

5. Run configuration wizard on all sp servers to finish the installation.

solution can be downloaded from :

https://github.com/VikasSukhija/Downloads/blob/master/Languagepacks.zip

Script code:-

##############################################################################
# Author: Vikas Sukhija
# Date: 9/17/2012
# Description:- Install Language Packs
##############################################################################
#################################LOG##########################################
$date = get-date -format d
$date = $date.ToString().Replace(“/”, “-”)
$time = get-date -format t
$time = $time.ToString().Replace(“:”, “-“)
$time = $time.ToString().Replace(” “, “”)
$log1 = “.\Logs” + “\” + “Processed_” + $date + “_.log”
$logs = “.\Logs” + “\” + “Powershell” + $date + “_” + $time + “_.txt”
Start-Transcript -Path $logs

##########################get executable files################################
Get-Content .\installfolders.txt | ForEach-Object{
[string]$loc = get-location
$date1 = get-date
Write-Host -ForegroundColor Blue “$date1 $_ Language Pack folder”
Add-Content $log1 “$date1 $_ Language Pack folder”
$ExecutableFile1 = (Get-ChildItem $_ -Name -Include Sharepoint*.exe )
$ExecutableFile2 = (Get-ChildItem $_ -Name -Include Server*.exe )
$date1 = get-date
Write-Host -ForegroundColor Blue “$date1 —Installing $ExecutableFile1—–”
Add-Content $log1 “$date1 —-Installing $ExecutableFile1——”
Start-Process -filepath $loc\$_\$ExecutableFile1 -ArgumentList “/quiet /norestart”

While (Get-Process -Name ($ExecutableFile1 -replace “.exe”, “”) -ErrorAction SilentlyContinue)
{
Write-Host -ForegroundColor Blue “.” -NoNewline
sleep 5
}
$date1 = get-date
Write-Host -BackgroundColor Blue -ForegroundColor Black “Done.”
Add-Content $log1 “$date1 —Done Installing $ExecutableFile1—–”
$date1 = get-date
Write-Host -ForegroundColor Blue “$date1 —-Installing $ExecutableFile2—”
Add-Content $log1 “$date1 —Installing $ExecutableFile2—–”

Start-Process -filepath $loc\$_\$ExecutableFile2 -ArgumentList “/quiet /norestart”

While (Get-Process -Name ($ExecutableFile2 -replace “.exe”, “”) -ErrorAction SilentlyContinue)
{
Write-Host -ForegroundColor Blue “.” -NoNewline
sleep 5
}
$date1 = get-date
Write-Host -BackgroundColor Blue -ForegroundColor Black “Done.”
Add-Content $log1 “$date1 —Done Installing $ExecutableFile2—–”
}
$date1 = get-date
Write-Host -ForegroundColor Green ” – Installation Complete.”
Add-Content $log1 “$date1 —Installation completed please run config wizard—-”

Stop-Transcript
##################################################################################

refrence:– http://blog.sharepoint-voodoo.net/?p=97

Regards

SUkhija Vikas

Leave a comment