Run EC2 Windows instance with 1280x1024 screen resolution

0

Hi all!

I use EC2 with Windows OS instance t3.2xlarge (without GPU) for running test automation. Instance is being started/ stopped via Jenkins plugin. The problem is that I want to run this instance with my custom screen resolution 1280x1024, instead of default one: 1024*768.

  • Update via "Display Settings" menu option is unavailable from RDP
  • Also, it's unavailabele from PowerShell script:

Set-DisplayResolution -Width 1920 -Height 1080

Based on reply from support team:

"The default maximum general type Windows instances screen resolution for non GPU instances using the Microsoft basic adapter is limited to 1280x1024."

Could someone help me to run EC2 Windows instance with 1280x1024 screen resolution by default? It would be great to configure it in AMI. So running instance won't rewquire any additional actions each time.

已提問 3 個月前檢視次數 410 次
2 個答案
0

The default screen is auto defined by the RDP client which as you already know is capped by the adapter. You can try the following settings:

  1. Open CMD on Jump Box
  2. Run command : mstsc.exe /w:1024 /h:768 Note*: Please set /w (width) and /h(height) as per your use case.
  3. connect to EC2 Instance 4 To confirm Display resolution you can run Powershell command on your EC2 Instance : Get-DisplayResolution OR 1.On Run /CMD type -> mstsc.exe
  4. Expand "Show options"
  5. Select Display
  6. Select Display configuration and connect to the EC2 Instance providing correct IP.
  7. To confirm you can run Powershell command : Get-DisplayResolution

Additionally, you can also use Windows Accelerated Computing instance type for higher resolutions. If you require the instance to boot-up automatically with higher resolution you might have to use some custom scripts or 3rd party tools for this which comes under customer side of Shared responsibility model.

AWS
支援工程師
已回答 3 個月前
0

To use Set-DisplayResolution, you need to install the PowerShell module.

Run the following commands from administrator PowerShell session

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-module -name DisplaySettings  -Force
Set-DisplayResolution -Width 1280 -Height 1024 -Force
Get-DisplayResolution

You need to run the above commands from a Windows console and not RDP session. Go to Display Settings, and verify that you are connected to Microsoft Basic Display Adapter (screen shot below) Enter image description here

AWS
專家
Mike_L
已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南