Windows: Languagepack Management with powershell

Hi,

great news 🙂 . Since Windows 11 22H2 a new powershell module is available for dealing with language packs.

Here

PS D:\> get-command -Module LanguagePackManagement

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           Get-Language                                       1.0        LanguagePackManagement
Alias           Get-PreferredLanguage                              1.0        LanguagePackManagement
Alias           Get-SystemLanguage                                 1.0        LanguagePackManagement
Alias           Set-PreferredLanguage                              1.0        LanguagePackManagement
Alias           Set-SystemLanguage                                 1.0        LanguagePackManagement
Cmdlet          Get-InstalledLanguage                              1.0        LanguagePackManagement
Cmdlet          Get-SystemPreferredUILanguage                      1.0        LanguagePackManagement
Cmdlet          Install-Language                                   1.0        LanguagePackManagement
Cmdlet          Set-SystemPreferredUILanguage                      1.0        LanguagePackManagement
Cmdlet          Uninstall-Language                                 1.0        LanguagePackManagement

Get a list of all installed languages

PS D:\> Get-InstalledLanguage

Language Language Packs  Language Features
-------- --------------  -----------------
de-DE    LpCab, LXP      BasicTyping, Handwriting, Speech, TextToSpeech, OCR
en-US    LpCab           BasicTyping, Handwriting, Speech, TextToSpeech, OCR

The offline way is to install install a language pack is to download DVD and install these packages:

PS D:\> Dism /Online /Add-Package /PackagePath:D:\LanguagesAndOptionalFeatures\Microsoft-Windows-Client-Language-Pack_x64_de-de.cab
PS D:\> Dism /Online /Add-Capability /capabilityname:Language.Basic~~~de-de~0.0.1.0 /source:D:\LanguagesAndOptionalFeatures
PS D:\> Dism /Online /Add-Capability /capabilityname:Language.Handwriting~~~de-de~0.0.1.0 /source:D:\LanguagesAndOptionalFeatures
PS D:\> Dism /Online /Add-Capability /capabilityname:Language.OCR~~~de-de~0.0.1.0 /source:D:\LanguagesAndOptionalFeatures
PS D:\> Dism /Online /Add-Capability /capabilityname:Language.Speech~~~de-de~0.0.1.0 /source:D:\LanguagesAndOptionalFeatures
PS D:\> Dism /Online /Add-Capability /capabilityname:Language.TextToSpeech~~~de-de~0.0.1.0 /source:D:\LanguagesAndOptionalFeatures

Importend: After installing a langauge pack install the latest windows updates to the get a fully language support.

See also Windows: Change System and User language

Michael

2 thoughts on “Windows: Languagepack Management with powershell”

  1. On Win11 22H2 Multisession, this module appears to be available via interactive session, but when I try to use it via Proactive remediation under System context, it isn’t loaded and not listed as available (via get-module -listavailable)

    1. Hi Simon,

      Hi There,

      I have same issue, as I am trying to run install-language command via task sequence . Even tough I can see the language pack management files in the system32 module folder ( I assume it means its installed) and I import the module. When I run the command install-language I receive an error install-language is not recognized. Did you manage to get it running under system account. Pls guide me further.

Leave a Reply