Skip to main content

Set-DisplayScaling

Description​

Set custom display scaling for Windows machines.

Requirements​

  • Windows OS
  • PowerShell 5

Usage​

  1. Set the registry path.
  2. Calculate the display scale value.
  3. Modify the LogPixels and Win8DpiScaling registry keys with the calculated value and enable DPI scaling.

To set the custom display scaling, use the following command:

.\Set-DisplayScaling.ps1 -Scale '150'

Parameters​

ParameterAliasRequiredValidate SetTypeDescription
ScaleTrue100, 125, 150, 175, 200Int32Percentage to set the display scale

Output​

  • .\Set-DisplayScaling-log.txt
  • .\Set-DisplayScaling-Error.txt

Changelog​

2025-04-10​

  • Initial version of the document