Add "Disable Aero Shake" (thx arobasse2)

This commit is contained in:
Disassembler
2018-10-04 13:18:33 +02:00
parent 7feaf667a8
commit f2b628048c
2 changed files with 13 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ DisableLockScreen # EnableLockScreen
# DisableLockScreenRS1 # EnableLockScreenRS1
HideNetworkFromLockScreen # ShowNetworkOnLockScreen
HideShutdownFromLockScreen # ShowShutdownOnLockScreen
# DisableAeroShake # EnableAeroShake
DisableStickyKeys # EnableStickyKeys
ShowTaskManagerDetails # HideTaskManagerDetails
ShowFileOperationsDetails # HideFileOperationsDetails

View File

@@ -1224,6 +1224,18 @@ Function ShowShutdownOnLockScreen {
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ShutdownWithoutLogon" -Type DWord -Value 1
}
# Disable Aero Shake (minimizing other windows when one is dragged by mouse and shaken)
Function DisableAeroShake {
Write-Output "Disabling Aero Shake..."
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "DisallowShaking" -Type DWord -Value 1
}
# Enable Aero Shake
Function EnableAeroShake {
Write-Output "Enabling Aero Shake..."
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "DisallowShaking" -ErrorAction SilentlyContinue
}
# Disable Sticky keys prompt
Function DisableStickyKeys {
Write-Output "Disabling Sticky keys prompt..."