Changing language in Windows in PS

RunningHome Member Posts: 7

Hello Guys,

Been working on this for a couple of days but it is not working…

Tried all the forum and the GDP i could think of but it is either not working or not doing everything.

We mostly receive English computers but need to put them all in French, Canada.

In setting it takes 1 minutes but it would be nice to do in automation.

Here is the need (Win 11 pro)

Add language

Set as Windows default

Disable Excution policy to run the script
Set-ExecutionPolicy ByPass -Scope LocalMachi
Install language and set it for all user
Install-Language fr-CA -CopyToSettings
Set WinUserLanguageList as a variable
$lang = Get-WinUserLanguageList
Clear the WinUserLanguageList
Add language to the language list
$lang.add(“fr-CA “ )
Remove whatever input method is present
Add this keyboard as keyboard language
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 fr-CA
Set the location to this location
Set-WinHomeLocation -GeoId 0x27
Set non-unicode legacy software to use this language as default
Set-WinSystemLocale -SystemLocale fr-CA
Restart-Computer -Force