1

In a school lab with PCs running Windows 11, I need to stop editing any of the mouse settings.

6
  • 1
    Well, not knowing what settings you are talking about, I would ask why? Just because it works for you, why do feel the need to force it on others? The usual one someone would want to change is swapping from right hand to left. Why would you force that on anyone? Commented Mar 5 at 10:35
  • 1
    @Bib Some students might mess with the sensitivity/swap left right as a prank to other students. It does make sense to restrict the settings unless you have people requiring ease of access settings.
    – A-Tech
    Commented Mar 5 at 10:54
  • @all It'ok to just prevent sensitivity/swap left right; do you know how to pls?
    – user374324
    Commented Mar 5 at 12:22
  • @user374324 so you want to deny a left handed person the ability to use the mouse properly? Why not just create a program which resets the settings? Commented Mar 5 at 12:48
  • 1
    I'm fairly sure the mouse settings are stored in the registry. You can set it to a default setting, and restore to that using startup script or group policy. That way, a user can mess with it, but after they log out, the settings will be reversed. Make sure you use computer startup script, not logon script as these regkeys are applied during logon. See also: superuser.com/questions/981554/…
    – LPChip
    Commented Mar 5 at 13:12

2 Answers 2

0

If you are using the pro version of windows or Windows server, you can restrict settings via Group Policy:

If your organization uses the Central Store for Group Policy management, to manage the policies, copy the ControlPanel.admx and ControlPanel.adml file to PolicyDefinitions folder.

This policy is available for both User and Computer configurations.

Computer Configuration -> Administrative Templates -> Control Panel -> Settings Page Visibility.

User Configuration -> Administrative Templates -> Control Panel -> Settings Page Visibility.

You can make a new configuration and hide the mouse settings (or any other settings, see here how which setting is named). To hide the mouse settings add the following rule:

Hide:mousetouchpad

Perhaps you also want to hide the ease of access settings as well:

Hide:easeofaccess-mouse;easeofaccess-mousepointer.

⚠ Do note that some people may rely on the ease of access settings.

1
  • This won't stop users from running Control Panel > Mouse.
    – harrymc
    Commented Mar 5 at 15:16
0

Mouse parameters are found in the registry at key HKEY_CURRENT_USER\Control Panel\Mouse.

You have specified you wish to keep mouse sensitivity and buttons swap. These settings are controlled respectively by items MouseSensitivity and SwapMouseButtons.

To save the current values of all mouse settings, run regedit, but you can't simply position to the key HKEY_CURRENT_USER\Control Panel. You need to position instead to HKEY_USERS and find the user's key, which might look like HKEY_USERS\S-1-5-21-2063358666-2461647202-2508659107-1001\Control Panel. Once found, right-click Mouse and select Export.

This will give you a .reg file containing the user's mouse settings. However, applying it requires Administrator privileges, so you cannot just run it from a standard user account.

I suggest to create a task to run automatically on user login in administrator mode. Follow the accepted answer in the post Schedule a task with admin privileges without a user prompt in windows 7.

The scheduled task can run a .bat file that contains the command
REG IMPORT \path\FileName.reg.

This way, whenever that specific user account logs in, its mouse settings are reset. Other user accounts won't be affected.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .