PowerShell: Get Screen Resolution

Need to check the current screen resolution - for troubleshooting a display issue, confirming a monitor setup, or documentation? This one-liner pulls it straight from the system.

Prerequisites:

  • Privileges: None
  • Module: Built-in, no import needed

Quick Command:

Get-CimInstance -ClassName Win32_VideoController | Select-object CurrentHorizontalResolution, CurrentVerticalResolution

Example Command:

CurrentHorizontalResolution CurrentVerticalResolution
--------------------------- -------------------------
                       1920                      1080
📦
Want all of them at once?
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

How It Works:

  • Get-CimInstance -ClassName Win32_VideoController queries the graphics adapter class, which holds display and GPU-related details.
  • CurrentHorizontalResolution and CurrentVerticalResolution return the width and height of the current display resolution in pixels - 1920 x 1080 here means Full HD (1080p).