編輯

共用方式為


Create a custom device image with languages already installed

To create a custom device image that gives users a localized Windows experience, follow these steps:

  1. Create a custom device image.
  2. Configure the default language using Group Policy.

Cloud PCs provisioned from this image will be fully configured to work in any of the installed languages, without any user action. When the user signs in to the Cloud PC, Group Policy will evaluate the device and set the appropriate pre-installed language as the user's preferred language for Windows.

Create a custom image

Creating a custom image with the languages installed is the best way to make sure that the desired languages are available on the Cloud PC when the user signs in.

Before starting the custom image process, check if your language is supported by the Windows 365 Language Installer script. If:

Add languages to Windows using a script and capture the image

To add a language using the Windows 365 Language Installer script:

  1. Sign in to the virtual machine you're customizing for use as the custom image.
  2. Complete one of the Installation Options described for the Windows 365 Language Installer script.
  3. Run the script and enter the number corresponding to the language you'd like to install on the custom image.

Note

You can use the script to install as many languages as you'd like on the custom image. To do so, run the script one time for each language.

After you're done adding the desired languages and are ready to capture the image, follow the steps to finish customizing your image.

Add languages to Windows manually and capture the image

To manually install the desired languages to your Windows 10/11 Enterprise custom image, follow the steps in Add language packs to a Windows 10/11 multi-session image up to and including finish customizing your image.

Note

Though these instructions are written specifically for Windows 10/11 Enterprise multi-session, these same steps apply to Windows 10/11 Enterprise.

Upload the custom image

To upload the custom image to the Windows 365 service, after you've captured the image as an Azure managed image, follow the steps in Add or delete device images.

Configure the default language using Group Policy

Now that the languages are installed on the image that users will receive, you must create a Group Policy to apply the correct pre-installed language as the default for your users.

The following steps configure Group Policy Preferences to set the PreferredUILanguages Registry value and the Windows Regional Options. These options are then targeted by security group to sets of users. Each security group and Group Policy object configures a single language as the default for those users. To cater for users with different language default requirements, you can use a single image with multiple languages and different Group Policy objects targeted to different groups of users.

  1. Create a security group in your Active Directory domain that will map a specific language to a specific set of users in that group.

  2. Add all Cloud PC users who should receive that language to this new security group.

  3. In Server Manager, open Group Policy Management and create a new Group Policy object linked to the Organization Unit (OU) or domain that will contain the Cloud PCs for those users.

  4. Right-click the new Group Policy object, and select Edit...

  5. Navigate to User Configuration > Preferences > Windows Settings, right-click Registry, and select New > Registry Item.

  6. Enter the following details in the General tab. Here's an example that shows Spanish (Spain) with language code es-ES:

    • Action: Replace
    • Hive: HKEY_CURRENT_USER
    • Key Path: Control Panel\Desktop
    • Value name: PreferredUILanguages
    • Value type: REG_SZ
    • Value data: [Language/region tag]. For example, ar-SA for Arabic (Saudi Arabia).

    Note

    To find the language code for your desired language and region combination, see the language pack list.

  7. Switch to the Common tab and check the following three options:

    • Run in logged-on user's security context (user policy option)
    • Apply once and do not reapply

    Note

    This setting makes sure that users can change language options themselves later.

    • Item-level targeting
  8. Select Targeting..., New Item, and Security Group.

  9. Select ... next to the Group, search for the new security group, select the new security group, and hit OK.

  10. Select User in group, then select OK and OK to complete the new registry process.

  11. In the "Group Policy Management Editor", navigate to User Configuration > Preferences > Control Panel Settings, right-click Regional Options, and select New > Regional Options.

  12. Under User Locale, select the language and region combination that matches the registry key you created in a previous step.

  13. After you select your desired language and region combination from the dropdown, the dropdown menu may be underlined in red. This underline indicates that the selection isn't confirmed. Press the F5 function key on your keyboard to confirm the selection, resulting in a green underlined dropdown menu.

    Before hitting F5:

    An example of the "User Locale" dropdown menu with a red underline, indicating that the selected language choice hasn't been confirmed.

    After hitting F5

    An example of the "User Locale" dropdown menu with a red underline, indicating that the selected language choice has been confirmed.

  14. Switch to the Common tab and check the following three options:

    • Run in logged-on user's security context (user policy option).
    • Apply once and do not reapply.

    Note

    This setting makes sure that users can change language options themselves later.

    • Item-level targeting.
  15. Select Targeting.., New Item, and Security Group.

  16. Select ... next to the Group, search for the new security group, select the new security group, and select OK.

  17. Select User in group, then select OK and OK to complete the new registry process.

You can perform these steps for each language you need to provide as the default language for users. If your users have both Cloud PCs and physical devices, you may want to apply Group Policy loopback so these settings only affect users when they sign in to their Cloud PC.

Note

Step 6 above uses the "Replace" command, setting the user's preferred language to just the one language defined in the registry item. If you create multiple Group Policy objects to assign different languages to users, make sure each user is only a member of a single security group that is being targeted.

Next steps

Required URLs for language packs