Mouse without Borders - use own security key

BrianC 20 Reputation points
2025-06-25T01:41:08.0933333+00:00

Is there a way to use my own personalised security key for Mouse without Borders, not one generated on one of the devices.

I managed to do this for 5+ years, until recently, when the app started insisting on a unique security key generated on at least one of the PCs. I only use the app on my home LAN, and don't want to have to copy the complex key to each of 5 PCs.

This should be an option the user can choose to use or not.

How can I work around this?

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Smith Pham 2,030 Reputation points Independent Advisor
    2025-06-25T08:37:50.83+00:00

    Dear BrianC,

    Manually Setting a Custom Security Key in Mouse without Borders May Offer a Workaround

    It is no longer possible to directly input a personalized security key through the Mouse without Borders user interface. Recent versions of the software, particularly since its integration into Microsoft's PowerToys suite, mandate the generation of a security key on one computer which must then be used on all other connected devices.

    This change from older, standalone versions of Mouse without Borders has been a point of frustration for long-time users who preferred the convenience of a simple, memorable key for their local network setups. The current design prioritizes a more secure, automatically generated key to encrypt the connection between computers.

    However, there is a potential workaround that involves manually editing the application's configuration file. This method is not officially supported and requires careful editing of a JSON file.

    Potential Workaround: Editing the settings.json File

    Users have reported success in setting a custom security key by following these steps:

    Locate the configuration file: The settings for Mouse without Borders are stored in a file named settings.json. You can find this file in the following directory on each of your computers: %localappdata%\Microsoft\PowerToys\MouseWithoutBorders\

    You can paste this path into the Windows File Explorer address bar to directly navigate to the folder.

    Edit the settings.json file: Open the settings.json file with a text editor like Notepad.

    Find and modify the security key: Inside the JSON structure, locate the "SecurityKey" setting. You will see a long, randomly generated key. You can replace this value with your own desired personalized key. Ensure that the key you enter is enclosed in double quotes.

    Repeat on all computers: You must repeat this process on all computers you wish to connect with Mouse without Borders, ensuring that the SecurityKey value is identical in each settings.json file.

    Restart PowerToys: After saving the changes to the settings.json file on all machines, restart the PowerToys application on each computer for the new settings to take effect.

    Important Considerations:

    • Unsupported Method: This is not an officially documented or supported feature. Future updates to PowerToys or Mouse without Borders could potentially break this workaround.
    • Risk of Errors: Incorrectly editing the settings.json file could cause issues with Mouse without Borders or other PowerToys utilities. It is advisable to create a backup of the original file before making any changes.
    • File Permissions: In some instances, you may need administrative privileges to save the changes to the settings.json file. Manually Setting a Custom Security Key in Mouse without Borders May Offer a Workaround It is no longer possible to directly input a personalized security key through the Mouse without Borders user interface. Recent versions of the software, particularly since its integration into Microsoft's PowerToys suite, mandate the generation of a security key on one computer which must then be used on all other connected devices. This change from older, standalone versions of Mouse without Borders has been a point of frustration for long-time users who preferred the convenience of a simple, memorable key for their local network setups. The current design prioritizes a more secure, automatically generated key to encrypt the connection between computers. However, there is a potential workaround that involves manually editing the application's configuration file. This method is not officially supported and requires careful editing of a JSON file. Potential Workaround: Editing the settings.json File Users have reported success in setting a custom security key by following these steps:
      1. Locate the configuration file: The settings for Mouse without Borders are stored in a file named settings.json. You can find this file in the following directory on each of your computers: %localappdata%\Microsoft\PowerToys\MouseWithoutBorders\ You can paste this path into the Windows File Explorer address bar to directly navigate to the folder.
      2. Edit the settings.json file: Open the settings.json file with a text editor like Notepad.
      3. Find and modify the security key: Inside the JSON structure, locate the "SecurityKey" setting. You will see a long, randomly generated key. You can replace this value with your own desired personalized key. Ensure that the key you enter is enclosed in double quotes.
      4. Repeat on all computers: You must repeat this process on all computers you wish to connect with Mouse without Borders, ensuring that the SecurityKey value is identical in each settings.json file.
      5. Restart PowerToys: After saving the changes to the settings.json file on all machines, restart the PowerToys application on each computer for the new settings to take effect.
      Important Considerations:
      • Unsupported Method: This is not an officially documented or supported feature. Future updates to PowerToys or Mouse without Borders could potentially break this workaround.
      • Risk of Errors: Incorrectly editing the settings.json file could cause issues with Mouse without Borders or other PowerToys utilities. It is advisable to create a backup of the original file before making any changes.
      • File Permissions: In some instances, you may need administrative privileges to save the changes to the settings.json file.

    Best Regards,


1 additional answer

Sort by: Most helpful
  1. BrianC 20 Reputation points
    2025-07-26T05:49:54.6966667+00:00

    Hi Max

    You currently have to auto-generate the key on one device - still a nuisance and shouldn't be required in my opinion. It should be the user's choice.

    So, to avoid having to type in lengthy garbage key characters on many PCs every few months, I force it to expire many years in the future.

    I used the instructions from this page: https://superuser.com/questions/1749241/how-to-prevent-mouse-without-borders-security-key-expiration

    The important bits are this:

    • I auto-generate the key on one PC.
    • On that PC, set the key entry date to a future date. The key entry date is stored in registry, in HKEY_USERS.DEFAULT\Software\Microsoft\MouseWithoutBorders\myKeyDate. It seems to be base64 encoded UTF16LE m/dd/yyyy string. Set it to MQAvADAAMQAvADIAMgAyADIA (1/01/2222).
    • Either type the key manually, or use some other means to copy and paste it on the other devices, either by clipboard transfer via a phone or a shared file.
    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.