Ouvrir dans l'explorateur

Activer GdiDPIScaling pour les applications

Turn on GdiDPIScaling for applications

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Système › Affichage EN : Computer Configuration › Policies › Administrative Templates › System › Display
Pris en charge sur
Windows Server 2016, Windows 10 version 1703 ou versions supérieures EN : At least Windows Server 2016, Windows 10 Version 1703
Fichier ADMX
Display.admx
Nom interne
Display/DisplayTurnOnGdiDPIScaling

Explication

Texte français issu de Windows 11 26H2

La mise à l’échelle PPP GDI permet aux applications sans prise en charge DPI de disposer d'une prise en charge DPI par moniteur.

Ce paramètre de stratégie vous permet de spécifier des applications héritées dont la mise à l'échelle PPP GDI est activée.

Si vous activez cette stratégie, la mise à l'échelle PPP GDI est activée pour toutes les applications héritées de la liste.

Si vous désactivez ou si vous ne configurez pas ce paramètre de stratégie, la mise à l’échelle PPP GDI ne sera pas activée pour une application, à moins qu'une application soit activée à l'aide de la base de données ApplicationCompatibility, du paramètre ApplicationCompatibility UI System (amélioré) ou d'un manifeste d'application.

Si la mise à l'échelle PPP GDI est configurée pour l'activation ou la désactivation d'une application, l'application sera désactivée.

GDI DPI Scaling enables applications that are not DPI aware to become per monitor DPI aware.

This policy setting lets you specify legacy applications that have GDI DPI Scaling turned on.

If you enable this policy setting, GDI DPI Scaling is turned on for all legacy applications in the list.

If you disable or do not configure this policy setting, GDI DPI Scaling will not be enabled for an application except when an application is enabled by using ApplicationCompatibility database, ApplicationCompatibility UI System (Enhanced) setting, or an application manifest.

If GDI DPI Scaling is configured to both turn off and turn on an application, the application will be turned off.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Display
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : Display/DisplayTurnOnGdiDPIScaling
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Display'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Activez la mise à l'échelle PPP GDI pour les applications suivantes. Utilisez le chemin complet de l'application ou le nom du fichier et l'extension de l'application. Séparez les applications à l'aide d'un point-virgule.
Set-ItemProperty -Path $k -Name 'EnableGdiDPIScaling' -Value '<valeur>' -Type String

Désactiver

# Désactiver : Display/DisplayTurnOnGdiDPIScaling
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : Display/DisplayTurnOnGdiDPIScaling
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Display'
Remove-ItemProperty -Path $k -Name 'EnableGdiDPIScaling' -ErrorAction SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Activez la mise à l'échelle PPP GDI pour les applications suivantes. Utilisez le chemin complet de l'application ou le nom du fichier et l'extension de l'application. Séparez les applications à l'aide d'un point-virgule.Enable GDI DPI Scaling for the following applications. Use either the full application path or the application filename and extension. Separate applications with a semicolon.DisplayTurnOnGdiDPIScalingPromptZone de textetextEnableGdiDPIScalingREG_SZ
Obligatoire

Disponibilité

Windows Server