Sunday, October 09, 2022

Get display resolution from the command line

Get display resolution from the command line

This will get both local resolution and remote desktop screen resolution using WMIC.
c:\>wmic path Win32_VideoController get VideoModeDescription

Sample out below when run on remote desktop session

VideoModeDescription
1024 x 768 x 4294967296 colors
1912 x 989 x 4294967296 colors
Tags: WMIC screen resolution

No comments:

SBCL Hello world

SBCL Hello, world! Version info: - OS: Windows 11 23H2 (Microsoft Windows [Version 10.0.22631.7079]) - Emacs: 30.2 - SBCL : 2.6.4 - SLI...