Skip to content

Instantly share code, notes, and snippets.

@ubergoober
Created January 3, 2024 07:32
Show Gist options
  • Save ubergoober/2daf485da65d686d79f7513d902cec78 to your computer and use it in GitHub Desktop.
Save ubergoober/2daf485da65d686d79f7513d902cec78 to your computer and use it in GitHub Desktop.
Reverse Windows Mouse Scroll
$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; 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" }
@ubergoober
Copy link
Author

0 : Win Default or 1 : Natural Scroll (Mac Default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment