- @echo off
- set /p YN=ON-开启/OFF-关闭/Q-退出:
- if /i "%yn%"=="q" exit
- if /i "%yn%"=="on" (set dword=0) else (if /i "%yn%"=="off" (set dword=1) else (exit))
- reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system" /v disabletaskmgr /t REG_DWORD /d %dword% /f
- pause>nul
复制代码
|