4

I am curious as to how does one remove a keyboard layout in Windows 10 Professional using PowerShell?

Ramhound
  • 42,708
Vlastimil Burián
  • 4,075
  • 11
  • 44
  • 69

1 Answers1

3

How does one remove a keyboard layout in Windows 10 Pro using PowerShell?

You can use Set-WinUserLanguageList.

Sometimes I need to type in German or in Russian. Often enough – every week I type something. Meanwhile, it bugs me to find the right layout every time.

And since I now prefer PowerShell to cmd.exe, I had a thought – I should add these layouts as I need them. So, now I have two files:

addDe.ps1:

$1 = Get-WinUserLanguageList
$1.Add('de-DE')
Set-WinUserLanguageList $1 -Force

remDe.ps1:

$1 = Get-WinUserLanguageList
$1.RemoveAll( { $args[0].LanguageTag -clike 'de*' } )
Set-WinUserLanguageList $1 -Force

Source Adding/removing keyboard layouts with PowerShell


Further Reading

Set-WinUserLanguageList

DavidPostill
  • 156,873
  • 2
    If I understand correctly, this trick removes both the preferred display language and the associated keyboard layouts/IMEs, correct? – Kal May 31 '18 at 01:56