/win-remove-en-gb-language

Scripts to remove the English (United Kingdom, en-GB) keyboard layout on Windows

Primary LanguagePowerShell

Remove English (United Kingdom, en-GB) keyboard layout

This repository contains scripts to remove the "English (United Kingdom)" keyboard layout programmatically and to create a scheduled job that will do that automatically on Windows startup.

It exists due to the annoying Windows bug that keeps adding the en-GB language layout without it being in the "Language & region > Language" settings.

These scripts were only tested on Windows 11.

How to use - Manual

This method is recommended for anyone who isn't comfortable running any shell commands or wants a user interface. It doesn't require any specific knowledge or tools

If you're looking for one line commands, see the "How to use - Shell" section.

Run once

  1. Download the repository.
  2. Right-click on scripts/remove-language.ps1 file and select the "Run with PowerShell" option.
  3. The keyboard layout should be gone.

Install the scheduled job

Before installing the scheduled job, it's recommended to try it running once to see if it fixes the problem.

This job will create a process at the startup to remove the language. It may result in a cmd.exe window appearing for a short time. If that's something you want to avoid, consider trying other solutions, or finding another way to make the scheduled job work.

  1. Download the repository.
  2. Right-click on scripts/job/install-startup-job.ps1 file and select the "Run with PowerShell" option.
  3. When it asks you for elevated privileges, press "Yes". You can check the code it wants to run by looking inside the file you right-clicked.
  4. The scheduled job should be installed now. To verify everything works, restart the computer and see if "English (United Kingdom)" layout is gone.

Uninstall the scheduled job

  1. Download the repository.
  2. Right-click on scripts/job/uninstall-startup-job.ps1 file and select the "Run with PowerShell" option.
  3. When it asks you for elevated privileges, press "Yes". You can check the code it wants to run by looking inside the file you right-clicked.
  4. The scheduled job should be uninstalled now. You can check the "Task Scheduler" to verify this.