Categories: System information

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

Ex:

C:\>wmic desktopmonitor get screenheight, screenwidth
ScreenHeight  ScreenWidth
900           1440
900           1440
c:\>

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.

c:\>wmic desktopmonitor get screenheight, screenwidth
ScreenHeight  ScreenWidth
900           1600
1080          1920
Srini

View Comments

Recent Posts

Add new user account from command line (CMD)

Adding users from command line is much easier than going through the UI. It saves…

4 years ago

Delete directory from command line [Rmdir]

Do you want to delete a directory from Windows command prompt(CMD)? This post explains how…

4 years ago

TaskKill: Kill process from command line (CMD)

We can kill a process from GUI using Task manager. If you want to do…

4 years ago

Kill Chrome from command line

Chrome is definitely the stable browser compared to other ones and it has been my…

4 years ago

Find windows OS version from command line

Windows has multiple command line utilities that can help find the version of the Windows…

4 years ago

How to check if Windows 32 or 64 bit?

There are multiple ways to check whether a Windows computer is running 32-bit OS or…

7 years ago