Created
February 14, 2023 18:02
-
-
Save INeddHelp/71d5cef5935055810bf338f97c3e8605 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
for /f "tokens=2" %%a in ('wmic path Win32_Keyboard get DeviceID /value ^| find "="') do ( | |
set "keyboard=%%a" | |
devcon.exe disable %keyboard% | |
) | |
timeout /t 5 | |
' wait 5 secs | |
shutdown /s /t 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment