For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get-DisplayPrimaryMonitorSize

Returns the primary display monitor size in pixels

Property
Value

Module

OSD

Platform

WinPE (amd64 / arm64)

Description

Returns the width and height of the primary monitor display in pixels using Windows Forms assembly.

Syntax

Get-DisplayPrimaryMonitorSize [-ProgressAction <ActionPreference>] [<CommonParameters>]

Parameters

This function does not define function-specific parameters beyond common parameters.

Examples

Example

Get-DisplayPrimaryMonitorSize
Returns primary monitor width and height

Last updated

Was this helpful?