Skip to content

Instantly share code, notes, and snippets.

Last active February 26, 2018 21:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Get SharePoint 2016 base language and language packs. For more details see:
#Requires -RunAsAdministrator
function Get-SharePointLanguages
$baseLanguageKey = Get-Item 'HKLM:\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\16.0\ServerLanguage'
$baseLanguageValue = $baseLanguageKey.Property
if($null -ne $baseLanguageValue -and $baseLanguageValue.Count -eq 1)
$baseLanguageCulture = New-Object System.Globalization.CultureInfo([int]$baseLanguageValue[0])
Write-Host "SharePoint base language:" -ForegroundColor Green
Write-Host $($baseLanguageCulture.DisplayName)
$languagePackKey = Get-Item 'HKLM:\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\16.0\InstalledLanguages'
if($null -ne $languagePackKey)
Write-Host "SharePoint Language Packs:" -ForegroundColor Green
$languagePackKey.Property | ForEach-Object -Process {
$languagePackCulture = New-Object System.Globalization.CultureInfo([int]$_)
Write-Host $languagePackCulture.DisplayName
Export-ModuleMember -Function Get-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment