How to Stop the Windows Display Language Warning in Windows 11?

0
6
Asked By CuriousCat123 On

I recently upgraded from Windows 10 to Windows 11 and noticed something odd. I have several PowerShell scripts that I compile into executables using PS2EXE. After the upgrade, one of these scripts now shows a popup warning that says, "If the Windows Display Language has changed, it will take effect after the next sign-in" when I run it. This was never an issue before. I suspect it's related to a specific line in my startup script that sets the keyboard layout. Here's the line causing the warning:
```powershell
$x = Get-WinUserLanguageList
$x[0].InputMethodTips[0] = "0409:00010409"
Set-WinUserLanguageList -LanguageList $x -Force
```
Can anyone help me figure out how to suppress this popup?

3 Answers

Answered By TechieTinker On

The warning seems tied to that line of code. It's likely due to changes in how Windows 11 handles language settings. You might need to tweak how you're setting the keyboard layout. A workaround could be adjusting your settings through the regular Windows settings menu instead of using a script.

SkepticalCoder -

If that's true, it's kind of frustrating. I hope there's a straightforward fix!

Answered By AutomateThis On

I'm curious, why are you compiling PowerShell scripts into executables? Seems like an unusual choice to me!

CuriousCat123 -

It's actually the best way I found to run them as hidden processes and also to set them to run as admin.

Answered By ScriptSavvy On

Could you share a simplified version of your script? That way, we might better grasp what might be triggering the warning. It could help us find a more specific solution!

CuriousCat123 -

Gotcha! I've updated my original post with the relevant lines that seem to be causing the issue.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.