Add languages to a Windows 11 Enterprise image
It's important to make sure users within your organization from all over the world can use your Azure Virtual Desktop deployment. That's why you can customize the Windows 11 Enterprise image you use for your virtual machines (VMs) to have different language packs. Starting with Windows 11, non-administrator user accounts can now add both the display language and its corresponding language features. This feature means you won't need to pre-install language packs for users in a personal host pool. For pooled host pools, we still recommend you add the languages you plan to add to a custom image. You can use the instructions in this article for both single-session and multi-session versions of Windows 11 Enterprise.
When your organization includes users with multiple different languages, you have two options:
- Create one dedicated host pool with a customized image per language.
- Have multiple users with different languages in the same host pool.
The second option is more efficient in terms of resources and cost, but requires a few extra steps. Fortunately, this article will help walk you through how to build an image that can accommodate users of all languages and localization needs.
Prerequisites
Before you can add languages to a Windows 11 Enterprise VM, you'll need to have the following things ready:
- An Azure VM with Windows 11 Enterprise installed
- A Language and Optional Features ISO and Inbox Apps ISO of the OS version the image uses. You can download them here:
- Language and Optional Features ISO:
- Inbox Apps ISO:
- An Azure Files share or a file share on a Windows File Server VM
Note
The file share repository must be accessible from the Azure VM that you're going to use to create the custom image.
Create a content repository for language packages and features on demand
To create the content repository you'll use to add languages and features to your VM:
Open the VM you want to add languages to in Azure.
Open and mount the ISO file you downloaded in the Prerequisites section above on the VM.
Create a folder on the file share.
Copy all content from the LanguagesAndOptionalFeatures folder in the ISO to the folder you created.
Note
If you're working with limited storage, you can use the mounted "Languages and Optional Features" ISO as a repository. To learn how to create a repository, see Build a custom FOD and language pack repository.
Important
Some languages require additional fonts included in satellite packages that follow different naming conventions. For example, Japanese font file names include "Jpan."
Set the permissions on the language content repository share so that you have read access from the VM you'll use to build the custom image.
Create a custom Windows 11 Enterprise image manually
You can create a custom image by following these steps:
Deploy an Azure VM, then go to the Azure Gallery and select the current version of Windows 11 Enterprise you're using.
After you've deployed the VM, connect to it using RDP as a local admin.
Connect to the file share repository you created in Create a content repository for language packages and features on demand and mount it to a letter drive (for example, drive E).
Run the following PowerShell script from an elevated PowerShell session to install language packs and satellite packages on Windows 11 Enterprise:
######################################################## ## Add Languages to running Windows Image for Capture## ######################################################## ##Disable Language Pack Cleanup## Disable-ScheduledTask -TaskPath "\Microsoft\Windows\AppxDeploymentClient\" -TaskName "Pre-staged app cleanup" Disable-ScheduledTask -TaskPath "\Microsoft\Windows\MUI\" -TaskName "LPRemove" Disable-ScheduledTask -TaskPath "\Microsoft\Windows\LanguageComponentsInstaller" -TaskName "Uninstallation" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Control Panel\International" /v "BlockCleanupOfUnusedPreinstalledLangPacks" /t REG_DWORD /d 1 /f ##Set Language Pack Content Stores## $LIPContent = "E:" ##Set Path of CSV File## $CSVFile = "Windows-10-1809-FOD-to-LP-Mapping-Table.csv" $filePath = (Get-Location).Path + "\$CSVFile" ##Import Necesarry CSV File## $FODList = Import-Csv -Path $filePath -Delimiter ";" ##Set Language (Target)## $targetLanguage = "es-es" $sourceLanguage = (($FODList | Where-Object {$_.'Target Lang' -eq $targetLanguage}) | Where-Object {$_.'Source Lang' -ne $targetLanguage} | Select-Object -Property 'Source Lang' -Unique).'Source Lang' if(!($sourceLanguage)){ $sourceLanguage = $targetLanguage } $langGroup = (($FODList | Where-Object {$_.'Target Lang' -eq $targetLanguage}) | Where-Object {$_.'Lang Group:' -ne ""} | Select-Object -Property 'Lang Group:' -Unique).'Lang Group:' ##List of additional features to be installed## $additionalFODList = @( "$LIPContent\Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~.cab", "$LIPContent\Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~$sourceLanguage~.cab", "$LIPContent\Microsoft-Windows-SnippingTool-FoD-Package~31bf3856ad364e35~amd64~$sourceLanguage~.cab", "$LIPContent\Microsoft-Windows-Lip-Language_x64_$sourceLanguage.cab" ##only if applicable## ) $additionalCapabilityList = @( "Language.Basic~~~$sourceLanguage~0.0.1.0", "Language.Handwriting~~~$sourceLanguage~0.0.1.0", "Language.OCR~~~$sourceLanguage~0.0.1.0", "Language.Speech~~~$sourceLanguage~0.0.1.0", "Language.TextToSpeech~~~$sourceLanguage~0.0.1.0" ) ##Install all FODs or fonts from the CSV file### Dism /Online /Add-Package /PackagePath:$LIPContent\Microsoft-Windows-Client-Language-Pack_x64_$sourceLanguage.cab Dism /Online /Add-Package /PackagePath:$LIPContent\Microsoft-Windows-Lip-Language-Pack_x64_$sourceLanguage.cab foreach($capability in $additionalCapabilityList){ Dism /Online /Add-Capability /CapabilityName:$capability /Source:$LIPContent } foreach($feature in $additionalFODList){ Dism /Online /Add-Package /PackagePath:$feature } if($langGroup){ Dism /Online /Add-Capability /CapabilityName:Language.Fonts.$langGroup~~~und-$langGroup~0.0.1.0 } ##Add installed language to language list## $LanguageList = Get-WinUserLanguageList $LanguageList.Add("$targetlanguage") Set-WinUserLanguageList $LanguageList -force
Note
This example script uses the Spanish (es-es) language code. To automatically install the appropriate files for a different language change the $targetLanguage parameter to the correct language code. For a list of language codes, see Available language packs for Windows.
The script might take a while to finish depending on the number of languages you need to install. You can also install additional languages after initial setup by running the script again with a different $targetLanguage parameter.
To automatically select the appropriate installation files, download and save the Available Windows 10 1809 Languages and Features on Demand table as a CSV file, then save it in the same folder as your PowerShell script.
Once the script is finished running, check to make sure the language packs installed correctly by going to Start > Settings > Time & Language > Language. If the language files are there, you're all set.
Finally, if the VM is connected to the Internet while installing languages, you'll need to run a cleanup process to remove any unnecessary language experience packs. To clean up the files, run these commands:
##Cleanup to prepare sysprep## Remove-AppxPackage -Package Microsoft.LanguageExperiencePackes-ES_22000.8.13.0_neutral__8wekyb3d8bbwe Remove-AppxPackage -Package Microsoft.OneDriveSync_22000.8.13.0_neutral__8wekyb3d8bbwe
To clean up different language packs, replace "es-ES" with a different language code.
Once you're done with cleanup, disconnect the share.
Finish customizing your image
After you've installed the language packs, you can install any other software you want to add to your customized image.
Once you're finished customizing your image, you'll need to run the system preparation tool (sysprep).
To run sysprep:
Open an elevated command prompt and run the following command to generalize the image:
C:\Windows\System32\Sysprep\sysprep.exe /oobe /generalize /shutdown
If you run into any issues, check the SetupErr.log file in your C drive at Windows > System32 > Sysprep > Panther. After that, follow the instructions in Sysprep fails with Microsoft Store apps to troubleshoot your setup.
If setup is successful, stop the VM, then capture it in a managed image by following the instructions in Create a managed image of a generalized VM in Azure.
You can now use the customized image to deploy an Azure Virtual Desktop host pool. To learn how to deploy a host pool, see Tutorial: Create a host pool with the Azure portal.
Note
When a user changes their display language, they'll need to sign out of their Azure Virtual Desktop session, then sign back in. They must sign out from the Start menu.
Next steps
Learn how to install language packages for Windows 10 multi-session VMs at Add language packs to a Windows 10 multi-session image.
For a list of known issues, see Adding languages in Windows 10: Known issues.