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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ