Knowledge article, 2023-08-19
On a multi-monitor setup, windows are restored to the wrong screen after unlocking from Windows 10 lock screen.
As a default after locking the computer, Windows 10 will wait 60 seconds and then make attached monitors go into standby mode. This causes monitors to be powered off and attached again when unlocking, which can make application windows appear on the wrong monitor from where the once where positioned.
Run a command prompt with administrator privileges.
powercfg.exe /setacvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK 3600
The above command sets the timeout to 3600 seconds (1 hour) before monitors go into standby mode.
powercfg.exe /setactive SCHEME_CURRENT
The above command ensures the scheme is set as active.
This was collected from the following source:
I'm using the first recommended approach in this article. I had no luck enabling the hidden feature under "Resolution for Windows 10 and Windows 11", there was no change in the UI for the Power Plan settings.