Skip to content

Setting Display resolution for Automation Testing machines | AzureDevOps

  • by

Once I ran into issue where the machine was running scripts in a lower resolution mode than the expected one, but when I logged with a Non Human account and ran the scripts it worked fine

Since the agent was setup in interactive and autologged in mode, the Non Human user was logged in autologged mode in the default resolution of 1024x 768

To rectify this issue, you may need to use a PowerShell command to set this

Set-DisplayResolution -Width 1920 -Height 1080 -Force