DisplaySwitch.exe behavior on Windows 11 22H2

Akshay Singh 56 Reputation points
2022-10-05T12:09:55.627+00:00

I have two displays connected to my PC, running Windows 11 Home. I use just the primary display most of the time but need to switch on my secondary display whenever I'm running a VM or need more screen estate.

For years, I've used DisplaySwitch.exe in conjunction with AutoHotKey to quickly switch between different display configurations. Here's the relevant snippet of my configuration:

^!1::  
; Ctrl+Alt+1 = Display 1  
Run, %A_WinDir%\System32\DisplaySwitch.exe /internal  
return  
  
^!2::  
; Ctrl+Alt+2 = Display 2  
Run, %A_WinDir%\System32\DisplaySwitch.exe /external  
return  
  
^!3::  
; Ctrl+Alt+3 = Display 1+2  
Run, %A_WinDir%\System32\DisplaySwitch.exe /extend  
return  

Today, I installed the 22H2 (build 22621.521) update and suddenly, those shortcuts stopped working. Now, pressing any of those key combinations pops up the Project window:

247759-image.png

Apparently, DisplaySwitch.exe no longer accepts the /internal, /external and /extend switches.

Is there an alternative method to get this working again?

Thanks for your time.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
4,675 questions
0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. Akshay Singh 56 Reputation points
    2022-10-06T08:04:55.33+00:00

    In case someone arrives here looking for a solution to a similar problem, I managed to solve it by copying DisplaySwitch.exe from a Windows 10 installation to a different location, and using that instead of the inbuilt DisplaySwitch.exe.

    My modified AHK config is:

    ^!1::  
    ; Ctrl+Alt+1 = Display 1  
    Run, "D:\Software\Display Switch\DisplaySwitch.exe" /internal  
    return  
      
    ^!2::  
    ; Ctrl+Alt+2 = Display 2  
    Run, "D:\Software\Display Switch\DisplaySwitch.exe" /external  
    return  
      
    ^!3::  
    ; Ctrl+Alt+3 = Display 1+2  
    Run, "D:\Software\Display Switch\DisplaySwitch.exe" /extend  
    return  
    
    4 people found this answer helpful.

  2. mkdr 91 Reputation points
    2022-12-04T06:59:24.327+00:00

    How incompetent can someone be... I have the same problem with Windows 11. Can anyone provide the displayswitchexe from Windows 10 please through a dropbox share or some other way, with a sha256 hash multiple people can confirm is the correct one. thanks

    here is a version someone shared from windows 10, it has digital signatur by windows, so that is safe:

    https://www.reddit.com/r/windowsinsiders/comments/uurnqd/comment/ipeoq15/?utm_source=reddit&utm_medium=web2x&context=3

    also theory in reddit post is, the cause of this problem is, they changed the exe to UWP app, and obviously that is missing arguments, same as switching to notepad.exe to UWP app which is totally 1000 times slower and buggy as hell.

    MS is a joke.

    3 people found this answer helpful.

  3. Limitless Technology 37,741 Reputation points
    2022-10-06T15:03:26.59+00:00

    Hello there,

    In most cases, DisplaySwitch.exe file problems are due to the file missing or being corrupted (malware / virus). See if you can repair it by running a system file fix then an image repair. Here's how:

    Run System File Checker

    1. Press Windows key + S, this will open search
    2. Type cmd, run command prompt as administrator
    3. Enter this command and press enter: sfc /scannow
    4. Wait for the process to finish and reboot your computer.
    5. Check if the issue still persists.

    Run windows image fix.

    1. Press Windows key + S, this will open search
    2. Type cmd, run command prompt as administrator
    3. Enter this command and press enter: DISM /Online /Cleanup-Image /RestoreHealth
    4. Wait for the process to finish and reboot your computer.
    5. Check if the issue still persists.

    --------------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--


  4. talormanda 1 Reputation point
    2022-10-09T15:11:28.363+00:00

    Running into this same issue after I updated to 22H2......

    0 comments No comments

  5. Obie 1 Reputation point
    2022-10-11T18:31:28.577+00:00

    The same for me, it's about 22H2.

    0 comments No comments