Set-DisplayScaling
Description
Set custom display scaling for Windows machines.
Requirements
- Windows OS
- PowerShell 5
Usage
- Set the registry path.
- Calculate the display scale value.
- Modify the
LogPixels
andWin8DpiScaling
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
Parameter | Alias | Required | Validate Set | Type | Description |
---|---|---|---|---|---|
Scale | True | 100, 125, 150, 175, 200 | Int32 | Percentage to set the display scale |
Output
.\Set-DisplayScaling-log.txt
.\Set-DisplayScaling-Error.txt