Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Agnostic - Set-DisplayScaling

Overview

Set Custom Display Scaling for Windows Machines

Requirements

  • Windows OS
  • PowerShell 5

Process

  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

Payload Usage

To set 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

The output files will be:

./Set-DisplayScaling-log.txt
./Set-DisplayScaling-Error.txt