Change/Force Left-handed Mouse settings via GPO, or other ways

7,776

Solution 1

I realize you already accepted an answer, but here's a VBS version of it for you as well (cause I know you were kind of looking for that):

Const HKEY_CURRENT_USER = &H80000001 
strComputer = "."  
Set Shell = CreateObject("WScript.Shell")  

Set objRegistry = GetObject ("winmgmts:\\" & strComputer & "\root\default:StdRegProv")  
strKeyPath = "Control Panel\Mouse"  

strValueName = "SwapMouseButtons"
strValue = "1"
objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue

Just be aware that these settings won't take affect until the next time the user logs in (after it's been applied), and also be aware that things like Logitech's MouseWare and SetPoint will often just switch that registry setting back (until you set it in their mouse-specific software) once they load after logon.

Solution 2

Yes, it can be done.

Group Policies -> User Configuration -> Preferences -> Windows Setting

Go to the 'Registry' setting.

Add a new Registry setting.

[HKEY_CURRENT_USER\Control Panel\Mouse]
SwapMouseButtons (RegSZ) = 1
Share:
7,776

Related videos on Youtube

kaynow
Author by

kaynow

Nice guy

Updated on September 17, 2022

Comments

  • kaynow
    kaynow over 1 year

    Is it possible to control Left-handed Mouse settings via GPO? (or a script that can be pushed using GPO :)

    I have Windows 7 / Windows Server 2008.

    Many thanks for your advice.

    Toast

    • techie007
      techie007 over 14 years
      @Toastman: Blind AND left-handed eh? :)
    • kaynow
      kaynow over 14 years
      Haha!! Indeed :-)
  • kaynow
    kaynow over 14 years
    Ah ha! Now that's exactly what I needed :) Thanks again techie007, that's the second mouse problem u help me with :P