function Install-LanguagePack # Add language pack CAB dism /online /Add-Package /PackagePath:"$SourcePath\lp.cab" /Quiet /NoRestart # Set as system UI language (requires reboot) Set-WinSystemLocale -SystemLocale $LanguageCode Set-WinUILanguageOverride -Language $LanguageCode Set-WinUserLanguageList -LanguageList $LanguageCode -Force
The script would be a wrapper around the Deployment Imaging Service and Management (DISM) tool, which is the only supported method for language pack servicing.
[Parameter(Mandatory=$false)] [string]$ImagePath, # For offline servicing of a mounted WIM
function Remove-LanguagePack dism /online /Remove-Package /PackageName:"Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~$LanguageCode~10.0.19041.1" # Also remove user profile language settings
[Parameter(Mandatory=$false)] [string]$SourcePath = "\\server\share\langpacks",
# Install speech (optional) if ($IncludeSpeechRecognition) dism /online /Add-Capability /CapabilityName:"Language.Speech~~~$LanguageCode~" /Source:"$SourcePath\fod" /LimitAccess
function Install-LanguagePack # Add language pack CAB dism /online /Add-Package /PackagePath:"$SourcePath\lp.cab" /Quiet /NoRestart # Set as system UI language (requires reboot) Set-WinSystemLocale -SystemLocale $LanguageCode Set-WinUILanguageOverride -Language $LanguageCode Set-WinUserLanguageList -LanguageList $LanguageCode -Force
The script would be a wrapper around the Deployment Imaging Service and Management (DISM) tool, which is the only supported method for language pack servicing. w10_11langpack.ps1
[Parameter(Mandatory=$false)] [string]$ImagePath, # For offline servicing of a mounted WIM function Install-LanguagePack # Add language pack CAB dism
function Remove-LanguagePack dism /online /Remove-Package /PackageName:"Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~$LanguageCode~10.0.19041.1" # Also remove user profile language settings w10_11langpack.ps1
[Parameter(Mandatory=$false)] [string]$SourcePath = "\\server\share\langpacks",
# Install speech (optional) if ($IncludeSpeechRecognition) dism /online /Add-Capability /CapabilityName:"Language.Speech~~~$LanguageCode~" /Source:"$SourcePath\fod" /LimitAccess