Search notes:

System.Windows.Forms.Screen (class)

System.Windows.Forms.Screen represents a systems' display device or display devices.

Properties and methods

AllScreens
BitsPerPixel
Bounds
DeviceName
Equals()
FromControl()
FromHandle()
FromPoint()
FromRectangle()
GetBounds()
GetHashCode()
GetWorkingArea()
Primary
PrimaryScreen
ToString()
WorkingArea

screens.ps1

screens.ps1 is a PowerShell script that prints the connected monitors' dimensions and positions.
add-type -assemblyName System.Windows.Forms

foreach ($screen in [System.Windows.Forms.Screen]::AllScreens) {
    $wa = $screen.WorkingArea
   '{0,-18}  {1,4}x{2,4} @ {3,4},{4,4}' -f $screen.DeviceName, $wa.Width, $wa.Height, $wa.X, $wa.Y
}
Github repository scripts-and-utilities, path: /screens.ps1

Index