Agnostic - Set-DisplayScaling
Overview
Set Custom Display Scaling for Windows Machines
Requirements
- Windows OS
- PowerShell 5
Process
- Set the registry path
- Calculate the display scale value
- Modify the
LogPixelsandWin8DpiScalingregistry 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
| Parameter | Alias | Required | Validate Set | Type | Description |
|---|---|---|---|---|---|
| Scale | True | 100, 125, 150, 175, 200 | Int32 | Percentage to set the display scale |
Output
The output files will be:
./Set-DisplayScaling-log.txt
./Set-DisplayScaling-Error.txt