Skip to content

Instantly share code, notes, and snippets.

@coughingmouse
Last active January 30, 2024 09:33
Show Gist options
  • Save coughingmouse/df434fd09355e6972c9b8a08626c06bc to your computer and use it in GitHub Desktop.
Save coughingmouse/df434fd09355e6972c9b8a08626c06bc to your computer and use it in GitHub Desktop.
Reverse Scroll on Windows (Applies instantly; no restart needed, applies to all current devices)
# Written by Jason Go
# From https://answers.microsoft.com/en-us/windows/forum/all/reverse-mouse-wheel-scroll/657c4537-f346-4b8b-99f8-9e1f52cd94c2
# Run as administrator on Powershell
$mode = Read-host "How do you like your mouse scroll (0 for Windows or 1 for Mac)?";
Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)";
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode;
"+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n";
Disable-PnpDevice -InstanceId "$($_.DeviceID)" -Confirm:$false;
Enable-PnpDevice -InstanceId "$($_.DeviceID)" -Confirm:$false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment