Skip to content

How to change default Windows resolution? (Autologon resolution without active rdp session, e.g. for UI test automation with selenium)

0

Hello,

I search for a solution on AWS EC2 Windows Instance to change the default resolution, to have a specific resolution, even if **no **active RDP session is connected.

For Autologin after instance is started, I use official MS Sysintenals Autologon: https://docs.microsoft.com/en-us/sysinternals/downloads/autologon

Everything is working fine with Autologon without RDP. I can simply reboot the instance or start new instanced, Autologon is happening, and also scripts (and UI test automation) is starting and running fine. But changing resolution of apps, e.g. the browser, is not working, this seems to be related to windows resolution itself. Because when I connect with RDP to the machine, all changes to app/browser windows sizes are working fine, with exactly the same scripts. But without an active RDP session, just with Autologon after reboot, resolution changes on app/browser are not done, this seems to be related because Windows resolution is too small without active RDP session.

I found a lot of topics and tried all solutions: This one: https://superuser.com/questions/853252/how-to-change-the-default-resolution-in-windows-for-automatic-logon. Or using PowerShell command itself, e.g.: “Set-DisplayResolution -Width 1920 -Height 1080 -Force”

But now one fix the problem.

Someone have a solution to set a specific windows resolution for a session with**out **active RDP connection (e.g. session per Autologon)?

Thanks a lot

asked 4 years ago1.6K views
1 Answer
1

Please refer to this article for possible solution

AWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.