Do not allow window animations
Ne pas autoriser les animations de fenêtres
Explanation
This policy setting controls the appearance of window animations such as those found when restoring, minimizing, and maximizing windows.
If you enable this policy setting, window animations are turned off.
If you disable or do not configure this policy setting, window animations are turned on.
Changing this policy setting requires a logoff for it to be applied.
Ce paramètre de stratégie contrôle l’utilisation des animations de fenêtres, telles que celles utilisées lors de la restauration, la réduction ou l’agrandissement de fenêtres.
Si vous activez ce paramètre de stratégie, les animations de fenêtres sont désactivées.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les animations de fenêtres sont activées.
Si vous modifiez ce paramètre de stratégie, vous devez fermer la session pour que les modifications soient prises en compte.
Registry
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\DWM- Value name
DisallowAnimations
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: DWM/DwmDisallowAnimations_1
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\DWM'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisallowAnimations' -Value 1 -Type DWordDisable
# Disable: DWM/DwmDisallowAnimations_1
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\DWM'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisallowAnimations' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": DWM/DwmDisallowAnimations_1
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\DWM'
Remove-ItemProperty -Path $k -Name 'DisallowAnimations' -ErrorAction SilentlyContinue