Forked from ScribbleGhost/Windows 10 English with Norwegian keyboard.ps1
Created
April 6, 2021 11:40
-
-
Save Sjark/dace7db9db27fc9608b7aec673b4024c to your computer and use it in GitHub Desktop.
Keep Windows 10 display language English but set all regional settings to Norwegian including keyboard input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set WinUserLanguageList as a variable | |
$lang = Get-WinUserLanguageList | |
# Clear the WinUserLanguageList | |
$lang.Clear() | |
# Add language to the language list | |
$lang.add("en-US") | |
# Remove whatever input method is present | |
$lang[0].InputMethodTips.Clear() | |
# Add this keyboard as keyboard language | |
$lang[0].InputMethodTips.Add('0409:00000414') | |
# Set this language list as default | |
Set-WinUserLanguageList $lang -Force | |
# Make region settings independent of OS language | |
Set-WinCultureFromLanguageListOptOut -OptOut $True | |
# Set region to this Country | |
Set-Culture nb-NO | |
# Set the location to this location | |
Set-WinHomeLocation -GeoId 0xb1 | |
# Set non-unicode legacy software to use this language as default | |
Set-WinSystemLocale -SystemLocale nb-NO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment