Windows 11 Enterprise 24H2 using WinApi set primary screen failed

  • Thread starter Thread starter Monjelle
  • Start date Start date
M

Monjelle

Guest
I am using Windows 11 Enterprise 24H2. running the following script to switch the primary display. The following script works fine in windwos11 23H2, but I found that in 24H2, the script can set the first screen as the primary display if the second screen is the primary display, and the script cannot set the second screen as the primary display if the first screen is the primary display.Function Set-ScreenResolution { $pinvokeCode = @" using System; using System.Runtime.InteropServices; using System.Collections.Generic; using Sys

Continue reading...
 
Back
Top