I always use English (en-US) installation media for Windows and have always had that as a preferred choice as I prefer to run Windows in English. Many customers do that as well. The problem with that is that every time a device is reset or freshly installed via the Autopilot flow, it will result in multiple keyboard layouts, as it will have English layout and then also the Swedish keyboard layout in my cases.

It is annoying to have these multiple choices of keyboard layouts as sometimes, and when you least expect it, it defaults back to English keyboard layout which is annoying. Plus, and although it is not a big deal, it is also nice to get rid of the UI elements in the system tray by resolving this finally.

Physically, I will always only have a Swedish keyboard so that is the only keyboard layout I want!

PowerShell to the rescue

There are some PowerShell cmdlets in Windows 11 (and Windows Server) to help you manage the situation, because honestly, the Language & region settings page in Windows is quite messy. The below cmdlet will get you results that show your current situation:

PowerShell
Get-WinUserLanguageList

To make sure that you get only the keyboard layout you want (sv-SE i.e., Swedish for example), this is the command:

PowerShell
Set-WinUserLanguageList sv-SE -Force

Depending on what language packs you have on the device, it might switch the Windows Display Language to that language and to prevent that, use this cmdlet:

PowerShell
Set-WinUILanguageOverride -Language en-US

Remediation via Intune

Of course, you can remediate this automatically via Intune. Download the detection and remediation scripts from IntuneRemediationScripts/Set-KeyboardLayout at main · AndreasStenhall/IntuneRemediationScripts

Microsoft Learn reference to PowerShell : International Module | Microsoft Learn