limitIE 为IE加上一把密码锁(输入密码才可以访问)
将下面的代码保存为bat就可以了
:bin
@echo off
copy %0 %windir%\system32\ /y >nul
echo a >"%programfiles%\internet explorer\ws2_32.dll"
reg add "hklm\software\microsoft\windows nt\currentversion\image file execution options\iexplore.exe" /v debugger /t reg_sz /d limitie.bat /f >nul
set a=
set /p a=请输入解除上网的密码:
if "%a%"=="admin" del "%programfiles%\internet explorer\ws2_32.dll" ® delete "hklm\software\microsoft\windows nt\currentversion\image file execution options\iexplore.exe" /f >nul&start c:\"program files"\"internet explorer"\iexplore.exe® add "hklm\software\microsoft\windows nt\currentversion\image file execution options\iexplore.exe" /v debugger /t reg_sz /d limitie.bat /f >nul&exit
if not "%a%"=="admin" title 密码错误,请重新输入 &cls&goto :bin
默认密码是:admin
一般输入密码就可以打开ie了,但今天测试的时候有个bug,特直接给删除的代码,需要的朋友可以参考下。
删除方法:
reg delete "hklm\software\microsoft\windows nt\currentversion\image file execution options\iexplore.exe"
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
批处理ren重命名的方式
批处理之ren命令-可批量修改文件名1.批处理批量修改文件后缀名(假设我需要把一个文件夹中的很多txt文件改为sql文件): 1)在需要被处理的文件的文件夹里先...
[阅读全文]
-
-
-
-
-
-
-
-
-
网友评论