Control Multiple PCs With One Keyboard and Mouse
In this article
Yes, you can control multiple Windows 11 PCs with one keyboard and mouse by using a software KVM (Keyboard, Video, Mouse) switch. The most reliable official method is using Microsoft PowerToys Mouse Without Borders, which allows your cursor to move across different monitors as if they were one large desktop, sharing the same input devices over your local network.
This setup eliminates the need for physical hardware switches and allows you to move your mouse seamlessly from one screen to another, provided all computers are connected to the same Wi-Fi or Ethernet network. It also enables basic clipboard sharing, allowing you to copy text or files on one machine and paste them on another.
What You'll Need
- Two or more PCs running Windows 11.
- A stable local area network (LAN) connection (all PCs must be on the same router).
- Microsoft PowerToys installed on every computer you wish to control.
- Administrator privileges on all machines to install software and configure firewall rules.
Step-by-Step
- Install Microsoft PowerToys: On every PC you want to include in the setup, download and install Microsoft PowerToys from the official Microsoft Store or the official GitHub releases page.
- Launch PowerToys: Open the PowerToys application on all machines. Note that menu labels may differ slightly depending on your version or region.
- Enable Mouse Without Borders: In the PowerToys dashboard, locate the Mouse Without Borders section in the left-hand sidebar and toggle the "Enable Mouse Without Borders" switch to On.
- Set Up the Primary PC: On the computer that has the physical keyboard and mouse plugged into it, go to the Mouse Without Borders settings and select "New Key" (or the equivalent option to generate a security code). A security key and your computer's name will be displayed.
- Connect the Secondary PCs: On the other computers, go to the Mouse Without Borders settings and select the option to connect to an existing machine. Enter the security key and the computer name exactly as shown on the primary PC.
- Configure the Layout: Once connected, you will see a visual representation of your monitors. Drag and drop the computer icons to match the actual physical positions of your monitors on your desk. This ensures that when you move your mouse to the right edge of one screen, it appears on the left edge of the next.
- Apply Settings: Click the "Apply" or "Connect" button to finalize the link. You should now be able to move your cursor across the screens.
Common Mistakes
- Mismatched Networks: Attempting to connect PCs where one is on a guest Wi-Fi network and the other is on a wired connection. They must be on the same subnet to communicate.
- Incorrect Layout: Forgetting to arrange the monitors in the software settings, leading to a confusing experience where the mouse moves in the opposite direction of the physical screen.
- Typing Errors: Misspelling the computer name when entering it on the secondary machine. These names are case-sensitive and must be exact.
- Ignoring Firewall Prompts: Clicking "Cancel" or "Deny" when Windows Firewall asks for permission to allow PowerToys to communicate on the network.
Tips
- Use Ethernet: For the lowest latency and smoothest cursor movement, connect all PCs via Ethernet cables rather than Wi-Fi.
- Clipboard Sharing: Use the settings menu to toggle "Share Clipboard" on. This allows you to copy a URL or a snippet of text on PC A and paste it directly into a document on PC B.
- Keyboard Shortcuts: Check the PowerToys documentation for specific hotkeys that can be used to switch focus or lock all connected machines simultaneously.
- Wrap-around: If you have a circular or complex layout, check the settings to see if "Wrap Mouse" is enabled, which allows the cursor to jump from the far right screen back to the far left.
Troubleshooting
If the computers fail to connect or the mouse freezes, try these steps in order:
- Restart PowerToys: Close the application on all machines and relaunch it.
- Check Network Profile: Ensure your network profile is set to "Private" rather than "Public" in Windows Settings > Network & internet > Ethernet/Wi-Fi. Windows often blocks communication between devices on Public networks for security.
- Verify Firewall Settings: Go to the Windows Firewall settings and ensure that PowerToys is allowed through the firewall for both private and public networks.
- Re-generate the Key: If the connection is unstable, generate a new security key on the primary PC and re-enter it on all secondary machines.
- Update Software: Ensure all machines are running the latest version of Microsoft PowerToys to avoid compatibility issues.
Frequently Asked Questions
Can I use this with a Mac or Linux machine?
No, Microsoft PowerToys Mouse Without Borders is designed specifically for Windows. To control a mix of different operating systems, you would need a third-party software KVM or a physical hardware KVM switch.
Does this allow me to move files between PCs?
Yes, it supports basic file dragging and dropping or copying and pasting of files, provided the network connection is stable and the feature is enabled in settings.
Will this work if one PC is a laptop and the other is a desktop?
Yes, as long as both are running Windows 11 and are connected to the same local network, the hardware type does not matter.
Is there a lag when moving the mouse?
On a fast wired network, the lag is virtually imperceptible. On slower Wi-Fi connections, you may notice a slight delay or "stuttering" of the cursor.
Can I use this to control a PC that is turned off?
No, both computers must be powered on, logged in, and running the PowerToys software for the connection to work.