Skip to main content

Hi,

Anyone use policies for config languages and keyboard layout?

Worklet ou scrypt for this?

Thx for help.

Sorry, for automox on Windows 10 pro.


Hey, @IceCream - I haven’t seen one like that, but we can do some digging. 


Hi,

Thx @ChadMc-Automox,

 

 


Here is one for Windows 10

 

# Set Language
$language = "en-US"  # Change this to the language code you want to set
Set-WinUILanguageOverride -Language $language

# Set Keyboard Layout
$keyboardLayout = "00000409"  # Change this to the keyboard layout code you want to set
Set-WinUserLanguageList -LanguageList ("$language") -Force
Set-WinUserLanguageList -LanguageList "$language" -KeyboardList "$keyboardLayout" -Force

# Log off and log back on to apply changes
Write-Host "Changes applied. Logging off to apply the changes..."
shutdown.exe /l /f
 


Here is one for Windows 11.

 

# Define language and keyboard layout codes
$languageCode = "en-US"  # Change this to your desired language code
$keyboardLayout = "00000409"  # Change this to your desired keyboard layout code

# Set language and keyboard layout
Set-WinSystemLocale -SystemLocale $languageCode
Set-WinUserLanguageList -LanguageList $languageCode
Set-WinUILanguageOverride -Language $languageCode
Set-WinKeyboardLayout -List $keyboardLayout
Set-WinUserLanguageList -LanguageList $languageCode -Force

# Restart required services for changes to take effect
Restart-Service -Name "WinRM" -Force
Restart-Computer -Force
 


Reply