To change screen resolution from the Windows command line, use a utility such as QRes or NirCmd; Windows does not include a standard Command Prompt command or PowerShell cmdlet for setting a display’s resolution. For example, with QRes installed, run QRes.exe /x:1920 /y:1080 to request 1920 × 1080, provided that mode is available for the display.
Does Windows have a built-in resolution command?
Not in the sense most people mean. Windows’ Settings app lets you choose a resolution, but there is no supported, built-in cmd command such as set-resolution, and PowerShell has no standard cmdlet that directly changes the desktop resolution. Command Prompt and PowerShell can both launch a separate utility, though, and Windows provides display APIs that software can call.
A couple of built-in commands are easy to confuse with a resolution setter. DisplaySwitch.exe changes how Windows projects the desktop—for example, between the PC screen, a duplicate display, or an extended desktop. It does not choose a resolution. Likewise, start ms-settings:display opens the Display page in Settings; it is a shortcut to the graphical controls, not a command that applies a chosen width and height.
This distinction matters when following online instructions: a command that opens Display Settings or changes projection mode may be useful, but it has not necessarily changed the resolution. If you need a repeatable command for a script, scheduled task, or shortcut, use a reputable utility and test the exact display mode first.
Use QRes or NirCmd
QRes and NirCmd are third-party command-line utilities that can request display-mode changes. Neither is a Windows component, so download it only from a source you trust, check that the file is appropriate for your system, and follow the publisher’s documentation. Their switches differ; do not copy one program’s syntax into the other.
- QRes: A common command is
QRes.exe /x:1920 /y:1080. The/xand/yoptions specify horizontal and vertical pixel dimensions. Some versions also accept options for color depth and refresh rate; consult the documentation for the copy you downloaded. - NirCmd: Its documented form is
nircmd.exe setdisplay 1920 1080 32 60, where the values request width, height, color depth in bits, and refresh rate in hertz. Confirm the accepted options and monitor behavior in the documentation for your version.
Replace the example values with a mode supported by your monitor and graphics setup. The first two numbers are resolution, not physical screen size. A 1920 × 1080 setting means 1,920 pixels across and 1,080 pixels down; it does not describe the monitor’s diagonal measurement.
If Windows cannot use the requested combination, the utility may report an error, leave the current mode unchanged, or fail in a way that is not especially informative. A command succeeding does not guarantee that every display or driver handled the request as expected, so check the result in Settings or on screen.
Check supported modes before changing resolution
Before running a command, find out which modes Windows offers for the display. Open Settings > System > Display, select the screen you intend to change if more than one is connected, and look at the Display resolution list. The mode marked Recommended is generally the display’s preferred native resolution, but other listed choices may suit a particular application or accessibility need.
For refresh-rate options, open Settings > System > Display > Advanced display. Resolution and refresh rate are related but separate settings. A monitor might support 1920 × 1080 at several refresh rates, while a higher rate may not be available at a larger resolution because of the display, cable, adapter, graphics hardware, or driver.
Use an exact mode shown by Windows as your starting point. For example, if the screen offers 2560 × 1440 at 60 Hz, a corresponding request might be QRes.exe /x:2560 /y:1440, or a NirCmd request with the matching dimensions and documented refresh-rate arguments. Avoid guessing a high refresh rate or unusual color depth just because the command accepts numbers.
Run the command from Command Prompt or PowerShell
After downloading a utility, open Command Prompt or PowerShell and change to the folder containing its executable. If it is in Downloads, for example, the commands could look like this:
- Command Prompt:
cd /d %USERPROFILE%\Downloads - PowerShell:
Set-Location "$HOME\Downloads"
Then run the utility and its options, such as QRes.exe /x:1920 /y:1080. In PowerShell, use .[0mQRes.exe /x:1920 /y:1080 with a normal period and backslash before the executable name: .[0m should be typed as .[0m only if your editor displays those characters literally; the intended command is .[0m not required in Command Prompt. To avoid ambiguity, the usual PowerShell form is .[0mQRes.exe /x:1920 /y:1080, where the prefix is a dot followed by a backslash.
When copying commands, do not include explanatory punctuation or angle brackets. If Windows says the command is not recognized, the terminal is probably not in the executable’s folder and the program is not on the system PATH. Use the full path to the executable, or add its folder to PATH only if you understand the system-wide implications. Administrator rights are not normally the first fix to try; first check the path, spelling, utility documentation, and supported mode.
Automate a resolution change
A command-line utility can be called from a batch file or shortcut. A minimal batch file might contain @echo off followed by the full path to QRes and its resolution options. Using a full path helps a scheduled task find the program even when its working folder differs from the folder you used in a terminal.
For example, a batch file could contain a line such as "C:\Tools\QRes.exe" /x:1920 /y:1080, assuming that is where you placed the executable. Save the file with a .bat extension and test it while logged in at the computer. If you create a Task Scheduler task, consider whether it should run only when you are logged on: changing the interactive desktop may not behave as expected when a task runs in a different session or without a visible desktop.
Automation is most useful when a known display setup is stable, such as a workstation that regularly uses one monitor mode. It is less reliable as a universal script for many PCs, because supported resolutions differ. A script should not assume every device has the same screen, graphics driver, dock, or refresh-rate options.
Multiple monitors and remote sessions
With multiple physical displays, be precise about which screen a command targets. Some utilities offer monitor-selection options, but their numbering and behavior are utility-specific. Windows may also treat a monitor’s identity differently after docking, unplugging a screen, changing ports, or updating a graphics driver. Test the command with the intended arrangement connected, and verify which display changed.
Windows’ Settings page is often the simplest way to identify a screen: select the display in the layout diagram and check its current resolution. If a command-line program does not expose a reliable way to select a particular monitor, do not assume it will affect the one you intended. For a one-time adjustment, use Settings; for automation, confirm the tool’s multi-monitor documentation rather than relying on guessed monitor numbers.
Remote Desktop adds another complication. The resolution of a remote session is often determined by the Remote Desktop client’s window or connection settings, not simply by changing the physical monitor’s local mode. A resolution command running inside a remote session may affect that session’s virtual display, may have no useful effect, or may be constrained by the connection. Diagnose the session settings separately from the resolution of the computer’s attached monitor.
Common problems and safe recovery
A black screen, a mode-rejection message, or a resolution that immediately returns to its old value usually points to an unsupported mode or a display-path limitation. The monitor, graphics adapter, driver, cable, dock, or remote-session configuration can each limit the combinations available. Try a mode listed in Windows Settings and use its matching refresh rate rather than repeatedly testing arbitrary values.
Changing a display mode is usually reversible, but a mode that produces no usable picture can be alarming. Prefer a tool or workflow that confirms changes or reverts after a timeout, if the utility offers that feature. Keep the Settings route available, and avoid automating a change on a machine you cannot access if you have not tested the same display arrangement first. If the screen is unusable, disconnecting an added display or restarting into a recovery path may help, but the exact remedy depends on the device and Windows version.
If the command appears to do nothing, check these points before changing permissions or reinstalling Windows:
- Is the executable present, and are you using the correct syntax for that specific utility?
- Does Windows list the requested resolution and refresh rate for the selected display?
- Are you changing a physical display, a virtual display, or a Remote Desktop session?
- Did the monitor, dock, cable, or display arrangement change since the mode was checked?
Command line versus Windows Settings
For a one-time change, Settings is usually the safest and clearest option: it shows available modes, identifies displays, and gives you a visible confirmation flow. A command-line utility is more convenient when you want a shortcut, a repeatable task, or a change integrated into a script, but it adds the responsibility of choosing a trustworthy download and checking its options.
Directly calling the Windows display API is another possibility for developers. Windows exposes functions for enumerating and changing display modes, but using them correctly involves handling display identity, available modes, return codes, and recovery behavior. That is why a short native PowerShell command is not generally interchangeable with a tested utility. If you are writing software rather than running a one-off command, use Microsoft’s documentation for the display APIs and implement validation instead of assuming a requested mode will work.
Frequently Asked Questions
Can I change resolution with CMD without downloading anything?
Windows has no standard CMD command that directly sets resolution. You can open Settings with start ms-settings:display, but you must make the change there. A command-line change generally requires a third-party utility or software that calls the Windows display API.
What is the QRes command to set resolution?
A common QRes example is QRes.exe /x:1920 /y:1080. Use dimensions supported by your display, and check the documentation that comes with the version you downloaded.
Does DisplaySwitch.exe change screen resolution?
No. DisplaySwitch changes projection arrangements, such as extending or duplicating displays. It does not set a screen’s pixel resolution.
Do I need administrator access to change resolution?
For an ordinary interactive desktop change, administrator access is not usually the first requirement. A failure is more often caused by unsupported settings, incorrect syntax, a missing executable, or a session limitation. Follow the utility’s documentation if it specifies otherwise.
Can a command change resolution on a second monitor?
Sometimes, depending on the utility and its monitor-selection support. Check its documentation and test with the intended displays connected; monitor numbering and behavior are not universal across tools.
Will the command set the resolution permanently?
Do not assume that it will. The change may remain for the current desktop configuration, but behavior can vary with the utility, display driver, hardware changes, and session type. Verify after restarting or reconnecting if persistence matters.