4

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

Ramhound
  • 41,734
  • 35
  • 103
  • 130
Vlastimil Burián
  • 3,887
  • 11
  • 41
  • 65

1 Answers1

4

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
  • 153,128
  • 77
  • 353
  • 394
  • 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