⚡ PowerShell 5.1+

Disable Aero Shake

Stops shaking a window from minimizing every other open window.

By WindowsScripting.com · 696 B
Set-DisableAeroShake.ps1
<#
.SYNOPSIS
    Disable Aero Shake.

.DESCRIPTION
    Stops shaking a window from minimizing every other open window.

    Sets HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced \ DisallowShaking to 1.

.EXAMPLE
    .\Set-DisableAeroShake.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'

if (-not (Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

New-ItemProperty -Path $regPath -Name 'DisallowShaking' -Value 1 -PropertyType DWord -Force | Out-Null

Write-Host "Disable Aero Shake applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green