1. 程式人生 >實用技巧 >其它 >Windows禁用、啟用筆記本內建鍵盤與觸控板

Windows禁用、啟用筆記本內建鍵盤與觸控板


禁用筆記本內建鍵盤與觸控板

@cd/d"%~dp0"&(cacls "%SystemDrive%\System Volume Information" >nul 2>nul)||(start "" mshta vbscript:CreateObject^("Shell.Application"^).ShellExecute^("%~nx0"," %*","","runas",1^)^(window.close^)&exit /b)
sc config i8042prt start= disabled
shutdown -r -t 0

啟用筆記本內建鍵盤與觸控板

@cd/d"%~dp0"&(cacls "%SystemDrive%\System Volume Information" >nul 2>nul)||(start "" mshta vbscript:CreateObject^("Shell.Application"^).ShellExecute^("%~nx0"," %*","","runas",1^)^(window.close^)&exit /b)
sc config i8042prt start= auto
shutdown -r -t 0

操作步驟

  1. 右鍵新建文字文件
  2. 貼上上面內容儲存退出
  3. 修改檔案字尾為bat
  4. 執行

注意

系統會重啟,注意儲存當前進度