Remove language from Windows 10 using PowerShell
I managed to do this by using the index of the English language in the $List
array in combination with the Set-WinUserLanguageList
cmdlet. I found it odd that I couldn't simply reverse the steps by using the $list.remove("lt-LT")
method, as it returns False
, so I set about recreating the list another way.
After you've added "lt-LT" to the list, I ran the first cmdlet again to see what we were working with:
$list = Get-WinUserLanguageList
Which returned an array with two objects. $list[0]
Returned
LanguageTag : en-USAutonym : English (United States)EnglishName : EnglishLocalizedName : English (United States)ScriptName : Latin scriptInputMethodTips : {0409:00000409}Spellchecking : TrueHandwriting : False
and $list[1]
returned
LanguageTag : ltAutonym : lietuviųEnglishName : LithuanianLocalizedName : LithuanianScriptName : Latin scriptInputMethodTips : {0427:00010427}Spellchecking : TrueHandwriting : False
So what we needed to do was ensure that Set-WinUserLanguageList
only got one of the inputs. I ran the following and it set the Language list appropriately.
Set-WinUserLanguageList $($list[0])
And now only the appropriate list is returned when running Get-WinUserLanguageList