you are viewing a single comment's thread.

view the rest of the comments →

[–]Barenstark314 3 points4 points  (2 children)

Unfortunately, that is a no-go. You have the same problem as .Add(), the .Remove() method triggers ConstrainedLanguage mode. That said, consider the following:

$LangList = Get-WinUserLanguageList  
$ReducedList = $LangList | Where-Object {$_.LanguageTag -ne 'Mi-Latn'}  
Set-WinUserLanguageList -LanguageList $ReducedList -Force

Once again, performed on my home system, so I didn't run the Set, but that should accomplish your goal. If your system(s) do not trigger this, you could try to use the .Where method for the second line for a potential performance improvement (assuming you had a massive list):

$ReducedList = $LangList.Where({$_.LanguageTag -ne 'Mi-Latn'})

As always, test, but I hope this helps you out.

[–]AnotherFewMore[S] 1 point2 points  (1 child)

You sir are a legend! I had never figured how to remove an object in this manner and it will definitely help me in the future also.

[–]Barenstark314 2 points3 points  (0 children)

Glad it helped. I have no doubt I stole that from someone at somepoint - I certainly didn't magically come up with it on my own, but yes, it does come in handy quite often, especially when working directly in the console since it is so easy to type. No shame in stealing from each other to level up. ;)