This blog post will guide you on how to add a language keyboard to your Windows machine using Windows PowerShell.
In our case, we have a Windows 11 Pro machine however, this script should work on Windows 10 as well.
I will add a Japanese keyboard to a Windows 11 machine using PowerShell in the following example.
Copy the following script and save it as .PS1. Run and check the language bar.
$LanguageList = Get-WinUserLanguageList $LanguageList.Add("ja-JP") Set-WinUserLanguageList $LanguageList -Force
Once the command executes successfully, the Japanese keyboard layout will be added to your system. You may need to sign out and sign back in or restart your computer for the changes to take effect.
After following these steps, you should be able to switch to the Japanese keyboard layout using the language bar or the assigned shortcut key (usually Left Alt + Shift).