Skip to content

Instantly share code, notes, and snippets.

@WesleyCh3n
Created February 22, 2022 02:46
Show Gist options
  • Save WesleyCh3n/d7fdfdc7a0331929c3d57357d5143913 to your computer and use it in GitHub Desktop.
Save WesleyCh3n/d7fdfdc7a0331929c3d57357d5143913 to your computer and use it in GitHub Desktop.
Windows 10 mouse wheel direction
# open powershell in administrator mode
$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" }
# 0: default direction
# 1: invert direction
# Reboot to take effect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment