This scripts demonstrate that change the Windows language options and region settings.
You need run the script line by line because the script has two phases that include the system reboots.
Phase 1:
- Download the Japanese language pack.
- Install the Japanese language pack to the system.
- Install the Japanese language related capabilities to the system.
- Set the time zone for the system.
- Restart the system.
Phase 2:
- Set the current user's language options and copy it to the default user account and system account. Also, set the system locale.
- Restart the system.
-
Language pack download
-
Windows Server 2022
You can get the Windows Server 2022 Language Pack ISO file from the link in Windows Server 2022 - Evaluation Center. The script uses the link URI. The ISO file contains all language pack CAB files.
Download this ISO.
-
Windows Server 2019
You can get the Windows Server 2019 Language Pack ISO file from the link in Cannot configure a language pack for Windows Server 2019 Desktop Experience. The script uses the link URI. The ISO file contains all language pack CAB files.
- Download an ISO image that contains the language packs here.
-
-
Language options configuration
The script uses Multilingual User Interface XML file for language options configuration. That explained in Guide to Windows Vista Multilingual User Interface.
-
Input Profiles (Input Locales)
You can find your language's Input Profile in Default Input Profiles (Input Locales) in Windows.
-
Geographical Locations
You can find your Geographical Location in Table of Geographical Locations.
-
Cultures
You can get all cultures by the following PowerShell code. It's use for
UserLocale
andSystemLocale
.[System.Globalization.CultureInfo]::GetCultures([System.Globalization.CultureTypes]::AllCultures).Name
-
Time zones
You can get all available time zones by the following PowerShell code.
Get-TimeZone -ListAvailable
-
Sometimes
Add-WindowsCapability
cmdlet failed with the following message. You can simply retry the command to resolve it.Add-WindowsCapability : The data area passed to a system call is too small. At line:1 char:1 + Add-WindowsCapability -Online -Name 'Language.Basic~~~ja-JP~0.0.1.0' ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-WindowsCapability], COMException + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand
- Change the Windows language options and regional settings using the DSC extension
- The DSC extension implementation of the script for Azure VMs.
Copyright (c) 2021-present Takeshi Katano. All rights reserved. This software is released under the MIT License.
Disclaimer: The codes stored herein are my own personal codes and do not related my employer's any way.