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:

Zig basic Windows application using win32 API

Zig basic Windows application using win32 API Info : OS: Windows 10 IoT LTSC 2021 Zig: 0.15.2 Sample application using zigwin32, Window...