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달 전371회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠