当前位置: 移动技术网 > IT编程>网络>Dos/Bat > limitIE 为IE加上一把密码锁(输入密码才可以访问)

limitIE 为IE加上一把密码锁(输入密码才可以访问)

2017年12月08日  | 移动技术网IT编程  | 我要评论

将下面的代码保存为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"

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网