This batch script allows you to easily enable or disable the PS/2 keyboard driver (i8042prt
) on Windows systems.
Perfect for users who want to temporarily disable their laptop keyboard when using an external USB keyboard.
- ✔️ Detects current PS/2 driver status automatically
- 🔁 Toggles between ENABLED and DISABLED
- 💾 No driver uninstall or permanent changes
⚠️ Reboot required for changes to take effect
- ✅ Windows 10 / 11 (with PS/2 keyboard support)
- ❌ Not compatible with USB-only keyboards
- ❌ Not compatible with macOS or Linux
- Download the ZIP from the Releases section.
- Extract the contents.
- Right-click the
.bat
file → Run as Administrator. - A message box will confirm if the driver is now ENABLED or DISABLED.
- Reboot your system for the change to take effect.
-
Disable Laptop Keyboard While Using USB Keyboard
- Ideal for users with a broken or malfunctioning built-in keyboard.
- Prevents accidental keypresses during typing or gaming.
-
Prevent Unauthorized Physical Access
- Useful in public or kiosk environments.
- Blocks local keyboard input to improve physical security.
-
Child or Pet Safety
- Prevents toddlers or pets from pressing keys unintentionally.
-
Keyboard Cleaning Mode
- Temporarily disables keyboard input for safe cleaning.
-
Testing or Troubleshooting
- Helps technicians or QA engineers test boot behavior or driver settings.
-
Accidental Typing Prevention
- Writers and editors can temporarily lock the keyboard to avoid distractions while reviewing content.
-
Automated Use with Task Scheduler or Remote Scripts
- Can be integrated into automation flows for toggling keyboard state on startup, shutdown, or remote command execution.
- This script does NOT uninstall the driver.
- It only updates the startup setting for the
i8042prt
driver. - If you've manually removed the driver from Device Manager, this script cannot re-enable it. You’ll need to reinstall it manually.