- Как в Windows 10 изменить разрешение экрана с помощью командной строки
- Get screen resolution from command prompt
- Set-Display Resolution
- Syntax
- Description
- Examples
- Example 1: Set resolution
- Example 2: Set resolution without confirmation
- Parameters
- How to change screen resolution using command line on Windows 10
- Change screen resolution using Command Prompt
- Change screen resolution using script
- Set display resolution from CMD or powershell using inbuilt command on windows
- 1 Answer 1
Как в Windows 10 изменить разрешение экрана с помощью командной строки
Хотя вы всегда можете изменить разрешение экрана в параметрах Windows, иногда гораздо удобнее использовать для этого командную строку либо PowerShell . В чем преимущества такого подхода, спросите вы? В возможности быстрой смены разрешения с использованием шаблонов. Предположим, у вас есть приложения или игры, для наиболее комфортной работы которых требуется определенное разрешение. Вы создаете пару скриптов и используете их как переключатели между обычным и специальным разрешениями.
Это намного быстрее и удобнее, чем пользоваться стандартными настройками операционной системы. Итак, для дела вам понадобится Блокнот и крошечная портативная утилита QRes, предназначенная для изменения таких настроек экрана как разрешение и частота обновления. Скачать ее вы можете со странички каталога Софтпедия (ссылка внизу) . Забросьте исполняемый файл утилиты в любое удобное вам расположение, а лучше всего в папку System32 .
Откройте командную строку или консоль PowerShell и выполните команду QRes.exe /x:800 /y:600 , предварительно заменив разрешение 800×600 своим.
X — это число пикселей по горизонтали, а Y — число пикселей по вертикали.
Если вы разместили исполняемый файл утилиты в пользовательский каталог, путь к нему придется указать полностью. А теперь, чтобы не открывать каждый раз консоль, вставьте команду в текстовый файл и сохраните его с расширением BAT или CMD , это даст вам возможность изменять разрешение одним кликом.
Как вариант, вместо скриптов можно использовать обычный ярлык, указав в поле расположения объекта приведенную выше команду.
Изменением разрешения дисплея возможности QRes не ограничиваются.
Используя доступные ключи (посмотреть их можно командой QRes /?) , вы можете быстро менять глубину цвета, частоту обновления, а также получать данные о текущих настройках экрана и всех доступных конфигурациях.
При этом нужно не забывать, что QRes не всемогущая, если изменение параметров дисплея не поддерживается на аппаратном уровне или уровне драйвера, поменять настройки с ее помощью не получится.
Get screen resolution from command prompt
We can find out desktop resolution of a computer from command prompt using wmic command. The below command prints desktop resolution for all the available monitors on the system.
wmic desktopmonitor get screenheight, screenwidth
The above output shows that there are two monitors connected to the computer, each having the resolution 900×1440.
The below is the output on another system connected to two displays having different resolutions.
Thanks for this! 🙂
i can’t use this command in Condition
I mean than :
If resolution do …
elso do …
it’s possible ?
You should be able to do this in a batch script by capturing the output of the wmic command in a variable and then check for it’s value.
How to change screen resolution with cmd without using third party tools
Nothing as such I am aware of.
Is there any command to duplicate the same display to the second monitor? or do vice-versa i.e Remove duplication and extend second display on the other monitor
Can you please let me know how to change resolution using cmd?
If the commands posted above does not work on Windows 10 machines, try the following
wmic path Win32_VideoController get CurrentHorizontalResolution,CurrentVerticalResolution
thanks, this one worked for me
I need to set my display resolution to 1024 x 768 . How do I do this in a straightforward manner?
Hey. I recently got a computer (Dell Inspiron with 15.6″ HD display) and I have it hooked up to a small tv, (Emerson 32″ -I think.) But I’m not able to find a command prompt to fit the resolution. I’m trying to learn this, but it’s not very easy to find books on coding and such.
Set-Display Resolution
Changes the display resolution for a Server Core server.
Syntax
Description
The Set-DisplayResolution cmdlet changes the display resolution for Windows ServerВ® 2012 in Server Core mode. Specify both the width and the height in pixels. Unless you use the Force parameter, the cmdlet prompts you before it changes the settings. You can use the Get-DisplayResolution cmdlet to view the current resolution.
For more information about Server Core mode, see Configure and Manage Server Core Installations.
Examples
Example 1: Set resolution
This command sets the display resolution to a width of 1920 pixels and a height of 1200 pixels. The system prompts you for confirmation.
Example 2: Set resolution without confirmation
This command sets the display resolution to a width of 1024 pixels and a height of 768 pixels. Because the command uses the Force parameter, it makes the change without prompting you.
Parameters
Forces the command to run without asking for user confirmation.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies a height, in pixels, for the display.
Type: | Object |
Position: | 1 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies a width, in pixels, for the display.
How to change screen resolution using command line on Windows 10
You can change your computer’s screen resolution using Command Prompt on Windows 10, you just need the right tool — Here’s how.
Although you can always change the screen resolution using the Display settings, Windows 10 doesn’t include a command line equivalent to adjust the resolution using Command Prompt or PowerShell.
This is a feature that would come in handy to quickly change the screen resolution for certain apps and games that work best at specific resolutions. Also, using a command line tool allows to automate the process with a script and even using Task Scheduler.
However, if you’re looking to change the resolution of your device monitor with command line, you can use QRes by Anders Kjersem, which is a tiny (legacy) tool that doesn’t require installation, and it’s been designed to adjust the display pixel resolution through Command Prompt.
In this guide, you’ll learn the steps to select a different display resolution for your monitor on Windows 10 using command line.
Change screen resolution using Command Prompt
To change screen resolution with command line on Windows 10, use these steps:
Right-click the QRes.zip file and select the Extract All button.
Click the Extract button.
Type CMD and press Enter in add “QRes” folder address bar to open Command Prompt in the location.
Type the following command to change the screen resolution and press Enter:
Change screen resolution using Command Prompt
In the command make sure to change the path for the QRes.exe file, and enter a supported width (x) and height (y) pixel resolution. For example, 1366 x 768, 1440 x 900, 1680 x 1050, 1920 x 1080, 2560 x 1440, etc.
Once you complete the steps, the screen will change to the resolution you specified.
Change screen resolution using script
Alternatively, you can use QRes to create a file script that you can simply double-click or schedule with Task Scheduler to change the display resolution automatically.
To create a script to change the screen resolution on Windows 10, use these steps:
Open Start.
Search for Notepad and click the top result to open the app.
Copy and paste the following command:
Script to change resolution automatically
In the command make sure to change the path for the QRes.exe file, and enter a supported width (x) and height (y) pixel resolution. For example, 1366 x 768, 1440 x 900, 1680 x 1050, 1920 x 1080, 2560 x 1440, etc.
Click the File menu.
Select the Save As option.
Save the batch file with a descriptive name and a .bat file extension.
After you complete the steps, double-click the batch file and the screen resolution should change automatically without the need for extra steps.
If you need to change the display resolution constantly, it’s recommended to create another batch file to restore the original resolution. You can always find out about all the solutions supported by your monitor on Settings > System > Display.
Although QRes is an old program, it doesn’t require installation and works as advertised. You may be able to find other tools, but they may required installation of additional software, and they won’t be as easy to use.
We may earn commission for purchases using our links to help keep offering the free content. Privacy policy info.
All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.
Set display resolution from CMD or powershell using inbuilt command on windows
I am looking for native windows command to change the resolution on windows 10 system. I trolled through many articles and all talks about using a third party tool like QRes, etc.
Do we have an inbuilt command line utility to change the resolution of the desktop from cmd or PowerShell?
1 Answer 1
Unfortunately, there is no in-built tool with Windows 10 that will allow you to change the resolution automatically.
I tried automating resolution using direct registry edits with PowerShell, but there are too many different possible keys responsible for it, depending on the type of graphics card you have.
If you can find the exact registry keys responsible for your resolution, you could use cmdlets such as Get-PSDrive -PSProvider Registry,New-ItemProperty,Get-Item,Get-ItemProperty,Set-ItemProperty,Remove-Item,Remove-ItemProperty to automate that.
To find the registry keys in question, there are a number of approaches. You could use Process Monitor to look at which registry keys and files are being updated when you make a resolution change.
Or you could regedit to export the registry before and after you make the change, and then compare the two files using a tool such as WinMerge