You are using an outdated browser. Please upgrade your browser to improve your experience.

You can configure the display resolution preferences that determine how a virtual machine is displayed only after resizing the window in VMware Remote Console .

Prerequisites

  • On Windows, select VMRC > Preferences .
  • On macOS, select VMRC > Preferences .
  • On Linux, select File > Remote Console Preferences .
  • Select Display .
Preferences Options Description
Autofit Guest Resize the virtual machine and the window. The virtual machine display resolution will resize to fit the window.
Stretch Mode Stretch the virtual machine in the window. The virtual machine display will stretch to fill the window, and the resolution is unchanged.

These display resolution preferences apply to both normal window and full screen mode.

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Screen resolution of VM while running in console mode

I have an application on my server that will take a screenshot of the desktop of the server while it's running. It's working well when I'm connected to the server with RDP, but when I disconnect, the resolution is decreased dramatically. It seems to be decreased to 640x480 if I'm not mistaken.

My server is a virtual server hosted by a third party and I do not know which hypervisor they use. I only have RDP access to it. I am using a workaround to send my current RDP session to the console. I run this command: tscon <session#> /dest:console

This works well, except for the fact that the resolution is decreased when the application I started is running in this session.

Does anyone know how I can increase the default resolution of the console session on a virtual machine?

  • windows-server-2008
  • virtualization

Community's user avatar

  • Two down votes? Would anyone care to help me improve the question? –  Niels Brinch Commented Feb 26, 2013 at 19:19
  • To increase the size of my virtual console, I go into Q:\Utilites\DosBox\0.74\conf ... See the problem? (Well, the main problem, at least). –  HopelessN00b Commented Feb 26, 2013 at 19:33
  • Can you log into the console directly at the keyboard and set a resolution to something normal and then do your RDP session AFTER that? –  TheCleaner Commented Feb 26, 2013 at 19:49
  • @HopelessN00b I hoped that referencing the other question would allow people to see what I meant, rather than repeating the entire other ticket in here. –  Niels Brinch Commented Feb 26, 2013 at 21:02
  • @TheCleaner I can only connect to it via RDP, which I think is always the case with a virtual server, even if you go to the physical server that's hosting the virtual server. –  Niels Brinch Commented Feb 26, 2013 at 21:12

3 Answers 3

Well, the resolution of the session would be changed to match the resolution of the (virtual) console it is being attached to. If 640x480 is not enough for your purposes, change it.

If you absolutely can't ask for console access from your hosting provider, installing VNC and connecting to the VNC socket would give you the "physical" console screen and let you change the console resolution via GUI tools. You also could try either using the QRes utility or a PowerShell script to change the resolution via the command line.

the-wabbit's user avatar

You can connect with VNC in order to SET the good resolution in Console mode.

After you set the resolution you don't need VNC anymore and you can use mstsc.

When you know the compatible resolution with the graphic card, you can automate the process with QRes tool : http://home.no/aksoftware/

Connect to the machine in mstsc and the this bat file : SwitchScreenResolution.bat

didaskein's user avatar

One could use

From: https://docs.microsoft.com/en-us/powershell/module/servercore/set-displayresolution?view=windowsserver2022-ps&viewFallbackFrom=win10-ps

enrique's user avatar

You must log in to answer this question.

Not the answer you're looking for browse other questions tagged windows-server-2008 virtualization ..

  • Featured on Meta
  • Upcoming initiatives on Stack Overflow and across the Stack Exchange network...
  • We spent a sprint addressing your requests — here’s how it went

Hot Network Questions

  • Are there other proposed translations of "aelfheres" in Beowulf than a name?
  • Book read in the 80/90s about an alien microbe taking over creatures
  • When is it appropriate to report mistakes in a paper?
  • Canon PowerShot A80 keeps shutting down and asking to change the battery pack. What should I do?
  • How to choose between 3/4 and 6/8 time?
  • Are there any reasons I shouldn't remove this odd nook from a basement room?
  • Any philosophical works that explicitly address the heat death of the Universe and its philosophical implications?
  • How should I deal with curves in new deck boards during installation?
  • Does physical reality exist without an observer?
  • To be considered airworthy, are commercial aircraft fuselages required to support some amount of external overpressure without buckling?
  • Help understanding the implications of Security Breach section of an NDA
  • What enforcement exists for medical informed consent?
  • As a DM, what should I do if a person decides to play a rogue?
  • Can a MicroSD card help speed up my Mini PC?
  • Sargent-Welch 1947 atomic model kit, design and use
  • How to find the axle kit for a Shimano front hub
  • Algebraic and continuous duals of an inverse limit of finite dimensional vector spaces
  • Using grout that had hardened in the bag
  • Is "double-lowercase-L" a ligature (Computer Modern Italic)?
  • Go the Distance
  • "Will make Elysian shades not too fair, too divine." in John Keats's "Lamia"
  • Why do jet aircraft need chocks when they have parking brakes?
  • An adjective for something peaceful but sad?
  • A web site allows upload of pdf/svg files, can we say it is vulnerable to Stored XSS?

task set console window screen resolution

Colin Westwater

Colin Westwater

  • Paisley, Scotland
  • vExpert Directory

VM Console Display Resolution Change

August 19, 2018 2 minute read

Introduction

Recently I noticed that when logging into VM’s at the console level through vCenter the resolution was all messed up. I set the VM’s at 1280x800 but was seeing resolutions all over the place.

It turned out people were using the Virtual Machine Remote Console or Web Console from vCenter to access the VM’s console and it was changing the resolution of the VM’s operating system to whatever the size of the web browser window was set to.

Annoying more than anything but after a couple of times finding someone with a HD monitor in portrait resolution setting the VM to 1080x1920 I decided to see what was going on and stop it.

VMware KB52031

I noticed this seemed to be happening since we upgraded to vCenter 6.5 so after some Googling I found the VMware KB article:

How to disable auto-fitting of Windows guest OS screen resolution when accessing from Web Client and VMRC (52031)

The symptoms fitted exactly what I was seeing and tested:

When opening or resizing VMRC of any versions or Web Console of Web Client 6.5, the screen resolution of Windows Guest OS changes to fit the window size of the client if the guest OS is Windows. This results in changing the screen resolution of the guest.

The fix is not so good. You need to modify the vmx file of the VM when it is powered off. Not great. The settings are:

guestInfo.svga.wddm.modeset=”FALSE” guestInfo.svga.wddm.modesetCCD=”FALSE” guestInfo.svga.wddm.modesetLegacySingle=”FALSE” guestInfo.svga.wddm.modesetLegacyMulti=”FALSE”

This can be done a couple of ways but I whipped up a quick PowerCLI script to change the vmx file quickly when I have one off for regular maintenance. As this issue is just annoying I am not scheduling an outage for the VM’s to make the change, but only when I have VM’s that I can take a quick outage on.

PowerCLI script

First of all power off the VM from the OS, the console, vCenter, PowerCLI or whatever way you want. Make sure the VM is powered off.

The script is pretty straightforward. First connect to vCenter:

You will be prompted for credentials to connect.

Next we will prompt for a VM name that we want to change and define it into a variable:

Now the VM is off we can add the lines to the vmx file. The PowerCLI cmdlet is New-AdvancedSetting :

We can now power on the VM:

Here is the full script:

Short and simple post and script to fix this ‘issue’. Now the resolution of the VM’s console can only be modified in the OS or through Group Policy which what I want.

You may also enjoy

Packer vsphere-iso windows repo.

April 30, 2024 1 minute read

My repo for using HashiCorp Packer to build VMware Workstation Windows Templates

Packer vmware-iso Template Import Issue

May 8, 2023 1 minute read

How to fix an issue when deploying a Windows Server 2022 template in VMware Workstation generated with Packer’s vmware-iso plugin

Windows Patch Slipstreaming

March 21, 2023 5 minute read

How to apply Windows Updates to an image file using PowerShell cmdlets

PuTTY Setup

December 14, 2022 3 minute read

My optimal PuTTY settings on Windows

Broadcom

  • Applications
  • Cloud & SDDC
  • VMware vSphere
  • Community Home

vSphere Client Console Display Resolution

talewis

talewis Feb 04, 2013 07:51 PM

zXi_Gamer

zXi_Gamer Feb 05, 2013 06:20 AM

talewis

talewis Feb 05, 2013 02:16 PM

Zxi_gamer feb 05, 2013 02:21 pm, talewis feb 11, 2013 03:24 pm.

andresantana

andresantana Dec 20, 2017 11:56 AM

1.  vsphere client console display resolution.

task set console window screen resolution

I'm running ESXi 4.1.  When I open a console from vSphere client, I cannot use a resolution higher than 1280 x 800.  Once I go to 1280 x 924, I cannot click on the task bar.  I want to use a resolution of 1280 x 1024.

I have the video card memory set at 128MB.  

Are there any other settings that I can try?

2.  RE: vSphere Client Console Display Resolution

task set console window screen resolution

AFAIK, the resolution displayed from the Guest console by the vsphere client is the Guest's resolution. Can you make a check if the guest if having the display of 1280 x 1024 configured,

Also, from the vsphere client, when you open the console, can you click on View and select Fit Guest window option. If the Fit to guest window is disabled, try to increase the console box manually and once done you will have the option enabled again.

3.  RE: vSphere Client Console Display Resolution

One thing I didn't mention, is I am selecting View - Enter Full Screen.

I do have the guest display setting at 1280 x 1024.

When I select Fit Guest Now, it changes the resolution on the Console to 1278 x 880.

It seems like this is the maximum resolution it can handle.  

4.  RE: vSphere Client Console Display Resolution

Hmmm.. there are options that can be added in the vmx file of the guest like

svga.vramSize = 8388608

svga.maxWidth = 1680

svga.maxHeight = 1200

Check out if this kb helps you out..

5.  RE: vSphere Client Console Display Resolution

I went through the KB you attached, and verified the RAM setting in the vmx file.

for a resolution of 1024 x 1280, I would need a svga.vramsize = 1024 x 1280 x 4 =  5242880.

If I set the Display memory to Auto-Detect video settings, it puts svga.vramsize = 16777216 in the vmx file.

If I enter total video RAM to 48MB, it puts svga.vramsize = 50331648.

These vramsize settings should be plenty for the resolution I'm looking for.

I tried 2 different ESXi clients.  One is running xp and one is running Win7. Both had the same results.

6.  RE: vSphere Client Console Display Resolution

task set console window screen resolution

Thanks a lot, it helped me.

New Best Answer

  • Terms of Use

How to change Display Resolution using CMD or Script in Windows 11/10

How to change display resolution in windows 11/10, 1] change screen resolution using settings app, 2] using hotkey resolution changer, how to change screen resolution using free software called hrc – hotkey resolution changer, 4] change display resolution using command prompt, 3] change screen resolution using script, why does display resolution change by itself and what can i do to avoid such changes, what is the natural display resolution of windows 11, should i change the display scale for windows 11, komalsrivastava@twc.

Navigation Menu

Search code, repositories, users, issues, pull requests..., provide feedback.

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly.

To see all available qualifiers, see our documentation .

  • Notifications You must be signed in to change notification settings

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen Resolution Utility gives error on MS-Hosted agents #629

@alepauly

ralucapredacegeka commented Mar 26, 2020 • edited Loading


Microsoft hosted agent(Azure Pipelines) started giving this error:
##[warning]The current user session is not a console session. It may not be possible to change the screen resolution. Please ensure that agent is running with autologon and disconnect any remote desktop sessions.
##[error]Failed to change the resolution.
We are using agent specification vs2017-win2016 but were able to reproduce it on windows-2019 as well. We want to change the specific screen resolution to 1920x1080.

: Servers

: Bug

  • 👍 11 reactions

@github-actions

jcageman commented Mar 26, 2020 • edited Loading

Some additional information that might help resolving the issue faster (received from another user of Screen Resolution Utility at the source below):

This has been acked by microsoft:
Ack, we are able to repro this. It seems to be an issue with the latest set of hosted images. Can you please file an issue at

Source:

Sorry, something went wrong.

@maxim-lobanov

jstoppa commented Mar 26, 2020

we are having the same issue and I suppose anyone that uses hosted agent. did you find any work around for the time being?

  • 👍 5 reactions

ralucapredacegeka commented Mar 31, 2020

Hi! When can we expect a solution or a workaround for this one? Our releases/tests have been failing for almost a week know.

@crazy-gecko

crazy-gecko commented Mar 31, 2020 • edited Loading

Or maybe any workaround to get a different resolution than the default 1028x768 (other than setting up a VM manually ;) )

@bartchojnacki

bartchojnacki commented Mar 31, 2020

It seems that the issue returned last night (UK) - it was working fine over the weekend

"2020-03-31T08:12:54.7286667Z ##[warning]The current user session is not a console session. It may not be possible to change the screen resolution. Please ensure that agent is running with autologon and disconnect any remote desktop sessions."

@alepauly

alepauly commented Mar 31, 2020

@nesshoever Apologies for the disruption. We are rolling out a fix, should be everywhere within the next two days.

As experienced, it is possible for successes to happen while the fix is completely rolled out.

  • 👍 4 reactions

ralucapredacegeka commented Apr 3, 2020 • edited Loading

Hi ! Please be aware that we are still facing this issue on both vs2017-win2016 and windows-2019. We understand rolling out the fix might take some time and hopefully this will be solved soon.

  • 👍 2 reactions

@lonevvolf

lonevvolf commented Apr 6, 2020

We still have the issue - has it been completely rolled out?

@GhassanDukes

GhassanDukes commented Apr 6, 2020 • edited Loading

As lonevvolf we are still seeing the same issue. Is there any ETA for when this will be fully rolled out?

@rsemenov

rsemenov commented Apr 6, 2020

👋 Unfortunately, we had to revert the fix we made last week as it revealed another more serious issue. At this time we fixed both issues and starting the rollout today and will rollout faster than regular release. It should reach all customers by Tuesday. We apologize for the inconvenience this has caused.

GhassanDukes commented Apr 6, 2020

thank you for the update. By Tuesday, do you mean 7th April? Or next Tue 14th April?

We will try our best to rollout by April 7.

@chiranjeevi5850

chiranjeevi5850 commented Apr 7, 2020

Is there any update.
when can we expect.

@saurabhchanchawat

saurabhchanchawat commented Apr 7, 2020

Still facing same issue for both vs2017-win2016 & windows-2019.
Agent version - 2.165.2
Is the rollout completed or still in progress?

rsemenov commented Apr 8, 2020

The rollout supposed the be completed today but we hit at another issue on the last ring and had to rollback. We are verifying the fix to the new issue and will try the rollout tomorrow.

The fix is partially available at this point and we finishing rolling it out to the last ring. It should be on everywhere tomorrow.

@actions

raul70 commented Apr 10, 2020 • edited Loading

It's still not working on windows-2019 hosted agents. The same warning & errors are displayed.

LE: It works fine since yesterday afternoon.

@Vishwanath-Reddy-M

Vishwanath-Reddy-M commented Apr 13, 2020

Hi Ruslan,

Good day!

Could you confirm on fix is rolled out everywhere?

Thanks,
Vishwa

Hi Ruslan,

Good day!

Could you confirm on fix is rolled out everywhere?

Thanks,
Vishwa

  • 👍 1 reaction

@TrickTester

TrickTester commented Apr 14, 2020

Issue is resolved but I am seeing one odd error as some of the agent has this pop up open which is blocking my selenium test.

rsemenov commented Apr 14, 2020

The fix for this issue has been rolled out everywhere since Friday evening.

@miketimofeev

miketimofeev commented Apr 27, 2020

I'm going to close the issue, but feel free to reopen if you have any concerns.
Thank you!

@miketimofeev

jithinjosejacob commented Jun 19, 2020

- can you please let me know the package version for this update,i am facing the same issue and have limited access to the machine,and need to provide IT Team with the above details

miketimofeev commented Jun 19, 2020

Sorry, what do you mean by package version?

The agent version which has the above fix

I'm afraid it's not connected with agent version, it's some kind of VM provisioner, which version isn't shown anywhere.
Do you have the exact same issue? You can try one of the methods described here to debug it

@sean-redmond

sean-redmond commented Jun 25, 2020

- Can I ask what the fix was that you rolled out? I am hitting the same error with some self hosted agents I built using the packer scripts from here.

rsemenov commented Jun 25, 2020

, the fix was to run the agent in an interactive session. To do that we had to register a scheduled task for the agent and manually start it. Make sure that after the agent is started as scheduled task it runs with administrator permissions.

Thanks, thats really useful, did you publish the changes anywhere?

rsemenov commented Jun 29, 2020

, These changes were internal to a non-opensource component of our system.

@chilakamarthi

chilakamarthi commented Sep 14, 2023

I still see the issue when I try to run the pipeline in Azure Cloud VM.

##[warning]The current user session is not a console session. It may not be possible to change the screen resolution. Please ensure that agent is running with autologon and disconnect any remote desktop sessions.
##[error]Failed to change the resolution.
Finishing: Set Resolution of Remote machine`

No branches or pull requests

@lonevvolf

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

SetConsoleDisplayMode function

  • 5 contributors

This document describes console platform functionality that is no longer a part of our ecosystem roadmap . We do not recommend using this content in new products, but we will continue to support existing usages for the indefinite future. Our preferred modern solution focuses on virtual terminal sequences for maximum compatibility in cross-platform scenarios. You can find more information about this design decision in our classic console vs. virtual terminal document.

Sets the display mode of the specified console screen buffer.

hConsoleOutput [in] A handle to the console screen buffer.

dwFlags [in] The display mode of the console. This parameter can be one or more of the following values.

Value Meaning
1 Text is displayed in full-screen mode.
2 Text is displayed in a console window.

lpNewScreenBufferDimensions [out, optional] A pointer to a COORD structure that receives the new dimensions of the screen buffer, in characters.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError .

This API is not recommended and does not have a virtual terminal equivalent. This decision intentionally aligns the Windows platform with other operating systems where the user is granted full control over this presentation option. Applications remoting via cross-platform utilities and transports like SSH may not work as expected if using this API.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header ConsoleApi3.h (via WinCon.h, include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

Console Functions

Console Modes

GetConsoleDisplayMode

Was this page helpful?

Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback .

Submit and view feedback for

Additional resources

task set console window screen resolution

| 5,344 installs (1) | Free

This extension installs a Build/Release task that can be used to change the screen resolution of agent machines. This is useful when running UI tests such as Selenium or Coded UI test. The task can automatically detect and set the optimal screen resolution supported by the agent machine. You can also specify custom values by providing desired width and height, in pixels.

for details.

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

How to get the current screen resolution on windows via command line?

I'm trying get the current screen resolution on windows via command line. Based on most of the answers I've found, I should use:

But this returns the max supported resolution of the display device, not the current one , which is what I need.

Example: I'm using a 4k monitor, but currently set to display only at 1920x1080 . When I run the command above, I get:

enter image description here

How do I get the current screen resolution on windows via command line?

  • command-line

Pedro Lobito's user avatar

  • Interesting, Why would you need this exactly? –  Outdated Computer Tech Commented May 15, 2019 at 1:39
  • I'm developing a multi OS app in python that needs to get current screen resolution via command line. I'm trying to avoid 3rd party libraries and stick with the default OS binaries or python builtin functions only. –  Pedro Lobito Commented May 15, 2019 at 1:46
  • 1 This question has already been asked at StackOverflow and Server Fault. You may need to use PowerShell. See stackoverflow.com/questions/7967699/… and serverfault.com/questions/825360/… –  DrMoishe Pippik Commented May 15, 2019 at 2:44
  • 1 It's not duplicate, but actually a good example of what's not working. –  Pedro Lobito Commented May 15, 2019 at 3:06

2 Answers 2

Dealing with high DPI made this somewhat challenging because most Windows API functions return a scaled version of the resolution for compatibility unless the application declares high DPI awareness. Inspired by this Stack Overflow answer I wrote this PowerShell script:

It outputs two lines: first the horizontal resolution, then the vertical resolution.

To run it, save it to a file (e.g. screenres.ps1 ) and launch it with PowerShell:

Ben N's user avatar

  • Your solution works perfectly, thank you. –  Pedro Lobito Commented May 16, 2019 at 23:16

I had a similar problem. Try this:

voices's user avatar

You must log in to answer this question.

Not the answer you're looking for browse other questions tagged windows command-line display powershell resolution ..

  • Featured on Meta
  • Upcoming initiatives on Stack Overflow and across the Stack Exchange network...
  • We spent a sprint addressing your requests — here’s how it went

Hot Network Questions

  • Are there other proposed translations of "aelfheres" in Beowulf than a name?
  • Is 3, 3 satisfiability trivial after all?
  • Why do "dual frequency" or low frequency switching regulators exist when higher frequency is better?
  • Is infinity a number?
  • Is it possible with modern-day technology to expand an already built bunker further below without the risk of collapsing the entire bunker?
  • How does light beyond the visible spectrum relate to color theory?
  • Whom did Rashi call "oker harim"
  • Negative kinetic energy on a step potential
  • Implementation of Euler-Maruyama numerical solver
  • Of "ils" and "elles", which pronoun is, grammatically speaking, used to refer to a group with an overwhelming female majority?
  • Canon PowerShot A80 keeps shutting down and asking to change the battery pack. What should I do?
  • Pattern on a PCB
  • Which Präposition should I use with Erwartungen?
  • How to find basis of vector fields?
  • Part name of this IC - Analog Devices, 8-pin, "S 6B" A 06" "C 42"
  • A web site allows upload of pdf/svg files, can we say it is vulnerable to Stored XSS?
  • What scientifically plausible apocalypse scenario, if any, meets my criteria?
  • Did any other European leader praise China for its peace initiatives since the outbreak of the Ukraine war?
  • Which interpreter for "Unicode text, UTF-8 text executable"
  • bpy.app.timers.register is lagging Blender
  • Simple probability question - seeming contradiction
  • How are GameManagers created in Unity?
  • Does the proverb "having your cake and eating it too" imply hypocrisy?
  • Does 誰と mean 誰とも?

task set console window screen resolution

  • Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers
  • Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand
  • OverflowAI GenAI features for Teams
  • OverflowAPI Train & fine-tune LLMs
  • Labs The future of collective knowledge sharing
  • About the company Visit the blog

Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Get early access and see previews of new features.

How would one set a custom windows control panel resolution in c#?

I'm creating an application that runs a game multiple times to play split screen with your friends. When using the new, yet to be released, console mode in my application, you first have to manually set two custom resolutions in control panel. Does anyone know of a way that I could set these resolutions via c# code before launching the game instances?

  • screen-resolution
  • controlpanel

PlGGS's user avatar

  • This may be relevant: stackoverflow.com/questions/15099523/… –  NoChance Commented Aug 15, 2016 at 3:37
  • I don't believe so as I'm not changing a console window's height or width. –  PlGGS Commented Aug 15, 2016 at 4:09

In order to set the resolution, you will have to use P/Invoke. There is an example from the MSDN library here (scroll to Task 2). Another example can be found here , which uses the same approach.

Bastian Thiede's user avatar

  • While I can see how this could be helpful, it's sadly not what I'm looking for. Windows comes with some preset resolutions for the computer to use when rendering screens and windows. You can add to these resolutions in the Nvidia and AMD control panels. Only after adding a new resolution to one of these lists, will your computer be able to run games such as Halo: Online at these resolutions. Right now I can't find a way to add a resolution to one of these lists without manually opening up one of the control panels and setting them manually. I'm not looking to set the screen resolution. –  PlGGS Commented Aug 16, 2016 at 6:06
  • Okay, thanks for clarification, @PlGGS. Unfortunately, I don't know about any Windows built-in way to achive this. I think you would have to use the vendor specific API in this case. However, since the graphics engine shouldn't have any problems to render at any (not predefined) resolution, maybe there is a config file with resolution settings? Can you edit the values and test what happens? Your split screen app could edit all the config files before starting the game. –  Bastian Thiede Commented Aug 16, 2016 at 7:40
  • I see, @Bastian . The app already defines the resolution the user chooses from a list of resolutions defined on the PC you're using. Before I implemented this feature people would do it manually like this . If you set the game to run at a resolution that your PC doesn't have listed, it runs it in the one that is closest to it on the list. That's why the person in the thread above had to jimmy rig a new resolution into the list to get it to run at it –  PlGGS Commented Aug 17, 2016 at 20:49

Your Answer

Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. Learn more

Sign up or log in

Post as a guest.

Required, but never shown

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy .

Not the answer you're looking for? Browse other questions tagged c# screen-resolution controlpanel or ask your own question .

  • Featured on Meta
  • We spent a sprint addressing your requests — here’s how it went
  • Upcoming initiatives on Stack Overflow and across the Stack Exchange network...
  • What makes a homepage useful for logged-in users

Hot Network Questions

  • Can I exit România on a different passport than the one used for entering the country?
  • Is this a Hadamard matrix?
  • Can I enter Japan with 2 different passports (in separate times)
  • Simple probability question - seeming contradiction
  • Can a festival or a celebration like Halloween be "invented"?
  • To be considered airworthy, are commercial aircraft fuselages required to support some amount of external overpressure without buckling?
  • Are there other proposed translations of "aelfheres" in Beowulf than a name?
  • Are you radical enough to solve this SURDOKU?
  • How are GameManagers created in Unity?
  • Is this definitive conclusion of a blown head gasket?
  • Adding outlets to a room via daisy chain using wiremold raceway
  • Are the North Star and the moon ever visible in the night sky at the same time?
  • How can I Subdivide a Mesh into Even Square Faces?
  • Is prescreening not detrimental for paid surveys?
  • Are there any reasons I shouldn't remove this odd nook from a basement room?
  • Switching Tenure-Track Positions Within Same University
  • Weak copyleft LGPL-like license for static linking
  • How to find basis of vector fields?
  • Car stalls when coming to a stop except when in neutral
  • How to control arrowhead size in chemfig?
  • Are there countries where only voters affected by a given policy get to vote on it?
  • How to choose between 3/4 and 6/8 time?
  • Is it possible to replace the flat-top pins on flat pedals with ones that have a dome top?
  • Error concerning projectile motion in respected textbook?

task set console window screen resolution

IMAGES

  1. How to Check Screen Resolution in Windows 11?

    task set console window screen resolution

  2. How to Adjust the Screen Resolution in Windows 11

    task set console window screen resolution

  3. How to Set Custom Screen Resolutions in Windows 10

    task set console window screen resolution

  4. How to Check Screen Resolution in Windows 11?

    task set console window screen resolution

  5. Change screen resolution in Windows 10

    task set console window screen resolution

  6. How to Fix Screen Resolution Problems in Windows 11?

    task set console window screen resolution

VIDEO

  1. Change Display Scaling in Windows 11 / 10

  2. How to Check and Change Screen Resolution in Windows 11

  3. How To Change Screen Resolution In Windows 11

  4. Change your Windows display resolution!

  5. How to Change Windows 11 Display Settings Resolution and Scale

  6. How to Fix Screen Resolution Problem Windows 10/11 [Easy Method]

COMMENTS

  1. Set VMware Remote Console Display Resolution Preferences

    You can configure the display resolution preferences that determine how a virtual machine is displayed only after resizing the window in VMware Remote Console.

  2. Console screen resolution not changing, and appearing too small

    2. RE: Console screen resolution not changing, and appearing too small. I too was having the same issue. Try changing your "Video Card" to "Auto-detect settings" in the "Edit Settings" menu. The virtual machine will have to be powered down. 3. RE: Console screen resolution not changing, and appearing too small.

  3. esxi 6.5 how to turn off autofit window / automatic display resolution

    The guests are mostly windows 7. The clients using the remote console are different Windows and Linux versions, but I think that does not matter since the resolution change is done by the vmware tools.

  4. Screen resolution of VM while running in console mode

    If you absolutely can't ask for console access from your hosting provider, installing VNC and connecting to the VNC socket would give you the "physical" console screen and let you change the console resolution via GUI tools. You also could try either using the QRes utility or a PowerShell script to change the resolution via the command line.

  5. Any way of changing Windows screen resolution via command line?

    Change screen resolution of all monitors to 800x600px with refresh rate of 60Hz and 32bit color depth. ChangeScreenResolution.exe /w=800 /h=600 /f=60 /b=32. Set color depth of display with index 1 to 16bit. ChangeScreenResolution.exe /b=16 /d=1. Quick overview of the options:

  6. How can I change the width of a Windows console window?

    Simply run "mode cols,lines" to change the size of the current console window: mode 120,60. will resize the console window to 120 columns and 60 lines. As I've discovered, thanks to this answer, running mode with no parameters will return all kinds of useful info, including columns and lines.

  7. VM Console Display Resolution Change

    It turned out people were using the Virtual Machine Remote Console or Web Console from vCenter to access the VM's console and it was changing the resolution of the VM's operating system to whatever the size of the web browser window was set to.

  8. vSphere Client Console Display Resolution

    I'm running ESXi 4.1. When I open a console from vSphere client, I cannot use a resolution higher than 1280 x 800. Once I go to 1280 x 924, I cannot click on the task bar. I want to use a resolution of 1280 x 1024.

  9. How do I change the resolution of full screen console mode in windows?

    Is it possible to change the amount of characters that appear in a full screen cmd.exe from 80X25?

  10. How to set display resolution via PowerShell on Win10 Pro

    Set-DisplayResolution is a commandlet from the ServerCore PowerShell module and seems not to be available on Windows 10. Can confirm what @CodeFox said. Running Set-DisplayResolution -Width 1024 -Height 768 on Windows Server 2019 worked out of the box.

  11. Increase the screen resolution on Test Agent

    There is a Screen Resolution Utility AzureDevOps Build/Release task to change the screen resolution of the agent machine. Useful when running UI tests such as Selenium, Coded UI etc.

  12. How to change Display Resolution using CMD or Script in Windows

    Apart from Settings, you can also change the Display Resolution using HRC, QRes command-line or this QRes script in Windows 11/10.

  13. Screen resolution Utility task fails with error #17764

    2023-02-09T17:06:37.3574008Z ## [debug]Processed: ##vso [task.logissue type=warning]The current user session is not a console session. It may not be possible to change the screen resolution. Please ensure that agent is running with autologon and disconnect any remote desktop sessions.

  14. Screen Resolution Utility gives error on MS-Hosted agents

    We are using agent specification vs2017-win2016 but were able to reproduce it on windows-2019 as well. We want to change the specific screen resolution to 1920x1080.

  15. SetConsoleDisplayMode function

    See reference information about the SetConsoleDisplayMode function, which sets the display mode of the specified console screen buffer.

  16. Change the default resolution of Remote Desktop Connection (mstsc)

    Is there a way to change the default resolution that mstsc uses? I dont want it to default to the full resolution of the client machine.

  17. How to do a Powershell (or other) script to change screen resolution

    There isn't a native powershell way to set the resolution. You could write in-line C# code in a powershell script to do it. Otherwise you would need to find a third party commandline application that does it and just call that from your script.

  18. Screen Resolution Utility

    This extension installs a Build/Release task that can be used to change the screen resolution of agent machines. This is useful when running UI tests such as Selenium or Coded UI test. The task can automatically detect and set the optimal screen resolution supported by the agent machine. You can also specify custom values by providing desired width and height, in pixels.

  19. How to get the current screen resolution on windows via command line?

    I'm trying get the current screen resolution on windows via command line. Based on most of the answers I've found, I should use: wmic desktopmonitor get screenheight, screenweight But this returns...

  20. How would one set a custom windows control panel resolution in c#?

    Windows comes with some preset resolutions for the computer to use when rendering screens and windows. You can add to these resolutions in the Nvidia and AMD control panels. Only after adding a new resolution to one of these lists, will your computer be able to run games such as Halo: Online at these resolutions.