Page 1 of 1

Edit a Windows 11 setting using batch

Posted: 2023-Mar-19, 2:59 am
by AmNotAGoose
How do I edit a Windows 11 setting using a batch script?

For example:
If I wanted to edit the touchpad setting to "most sensitive": https://imgur.com/8ZjAWYW
... what the batch script look like?

Re: Edit a Windows 11 setting using batch

Posted: 2023-Mar-19, 12:38 pm
by Simon Sheppard
Most of these settings can be found in the registry

e.g.

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\PrecisionTouchPad
32-Bit DWORD value AAPThreshold.
0 = Most sensitive
1 = High sensitivity
2 = Medium sensitivity (default)
3 = Low sensitivity

So first I would look at that in regedit before and after manually changing the value to be sure which number you need.

Then write a one line script with REG.exe to set the value you want.

If you are doing this for multiple machines, there is very likely a Group Policy setting which will do the same thing.