关于修改注册表的web端和inf端的方法

web端:

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio" charset="UTF-8">
<TITLE></TITLE>
</HEAD>
<BODY>

 <div id="bd">
        <object id="ax" name="myAx" width="95%" height="900" classid="CLSID:61CA4820-F41A-4FDA-9F6F-2B6437502C0B" codebase="mycab.cab#version=1,0,0,1"></object>
    </div>

<script type="text/javascript">

var WshShell=new ActiveXObject("WScript.Shell");

WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\Microsoft.com","");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\Microsoft.com\\www","");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\Microsoft.com\\www\\http","2","REG_DWORD");
document.write("<p>添加信任网站区域设置成功!</p><br>");

//添加信任站点IP
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range101","");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range101\\http","2","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range101\\:Range","39.106.157.136");
document.write("<p>添加信任站点IP设置成功!</p><br>");
//修改IE ActiveX安全设置
//受信任站点区域
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\1001","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\1004","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\1200","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\1201","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\1405","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2\\2201","0","REG_DWORD");
document.write("<p>受信任站点区域设置成功!</p><br>");
//Internet区域
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1001","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1004","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1200","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1201","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1405","0","REG_DWORD");
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2201","0","REG_DWORD");
document.write("<p>Internet区域设置成功!</p><br>");
//高级设置
WshShell.RegWrite("HKCU\\Software\\Microsoft\\Internet Explorer\\Download\\RunInvalidSignatures","0","REG_DWORD");
document.write("<p>修改IE ActiveX高级安全设置成功!</p><br>");

WshShell.Run("file:///C:/WINDOWS/system32/regsvr32.exe C:\\WINDOWS\\system32\\xxx.dll",0,false);

var axObject = document.getElementById('ax');
    axObject.init();

</script>

</BODY>
</HTML>

inf端:

AddReg=GM
[GM]
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\CAS",":Range",0,"39.106.157.136"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\CAS","http",65537,"00000002"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","1001","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","1004","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","1200","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","1201","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","1405","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2","2201","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","1001","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","1004","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","1200","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","1201","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","1405","0x00010001","0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3","2201","0x00010001","0"
HKCU,"Software\Microsoft\Internet Explorer\Download","RunInvalidSignatures","0x00010001","0"
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值