'RDP - End session without losing screen resolution
I have a Virtual Machine hosted elsewhere in the world.
What I want to do is to disconnect from this RDP session without:
- Windows locking automatically
- Screen resolution changing
I've solved the first issue of the windows locking by running this .bat file to end the session:
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
%windir%\System32\tscon.exe %%s /dest:console
)
However, when I run a script remotely to check the screen resolution, it drops down to 1614x834.
How can I explicitly set 1920x1080?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
