当前位置:首页 > 电脑知识

通过注册表来修改IE安全设置

canca17年前 (2008-12-10)电脑知识497

系统环境:Windows 2003 sp1

IE版本:IE 6.0

HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones下

安全级别currentlevel值:0安全级为自定义,12000安全级为高,11000安全级为

中,10500安全级为中低,10000安全级为低;

0:我的电脑

1:本地 Intranet

2:可信站点

3:Internet

4:受限站点

ActiveX控件和插件的设置,依次为:1405(301),1201(301),1004(301),1001(301),1200(65536,(301));0为启用,3为禁用,1为提示。

1001 下载已签名的 ActiveX 控件
1004 下载未签名的 ActiveX 控件
1200 运行 ActiveX 控件和插件
1201 对没有标记为安全的 ActiveX 控件进行初始化和脚本运行
1405 对标记为可安全执行脚本的 ActiveX 控件执行脚本
2201 ActiveX 控件自动提示

修改IE安全设置(安装、运行未签名的ActiveX控件):
reg add "HKLMSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3" /v 1004 /t REG_DWORD /d 0 /f
reg add "HKLMSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3" /v 1200 /t REG_DWORD /d 0 /f

编写.inf文件修改:

[Version]
Signature=$Chicago$
AdvancedINF=2.5

[DefaultInstall]
RequiredEngine=SetupAPI,"Fatal Error - missing setupapi.dll"
CustomDestination=CustInstDestSection
AddReg=AddReg.Hkcu,AddReg.Hklm

[IeakInstall.Hkcu]
RequiredEngine=SetupAPI,"Fatal Error - missing setupapi.dll"
CustomDestination=CustInstDestSection
AddReg=AddReg.Hkcu

[IeakInstall.Hklm]
RequiredEngine=SetupAPI,"Fatal Error - missing setupapi.dll"
CustomDestination=CustInstDestSection
AddReg=AddReg.Hklm

[CustInstDestSection]
49000,49001,49002,49003=ProgramFilesDir,21
49100,49101,49102,49103=IEDir,21

[ProgramFilesDir]
HKLM,"SOFTWAREMicrosoftWindowsCurrentVersion","ProgramFilesDir",,"%24%Program Files"

[IEDir]
HKLM,"SOFTWAREMicrosoftWindowsCurrentVersionApp Pathsiexplore.exe","Path",,"%49001%Internet Explorer"

[AddReg.Hklm]
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones",1004,0x10001,00,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones",1200,0x10001,00,00,00,00

HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1",1004,0x10001,03,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1",1200,0x10001,00,00,00,00

HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2",1004,0x10001,01,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2",1200,0x10001,00,00,00,00

HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3",1004,0x10001,00,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3",1200,0x10001,00,00,00,00

HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones4",1004,0x10001,03,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones4",1200,0x10001,03,00,00,00

[AddReg.Hkcu]
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones",1004,0x10001,00,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones",1200,0x10001,00,00,00,00

HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1",1004,0x10001,03,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1",1200,0x10001,00,00,00,00

HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2",1200,0x10001,00,00,00,00

HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3",1004,0x10001,00,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3",1200,0x10001,00,00,00,00

HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones4",1004,0x10001,03,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones4",1200,0x10001,03,00,00,00

保存为.inf文件后点击右键-安装即可。

扫描二维码推送至手机访问。

版权声明:本文由Ant.Master's Blog发布,如需转载请注明出处。

本文链接:https://iant.work/post/342.html

标签: 电脑知识
分享给朋友:

“通过注册表来修改IE安全设置” 的相关文章

内存不能被read或written错误,系统不停重启

运行某些程序的时候,有时会出现内存错误的提示,然后该程序就关闭。 “0x????????”指令引用的“0x????????”内存。该内存不能为“read”。 “0x????????”指令引用的“0x????????”内存,该内存不能为“written”。 一般出现这个现象...…

主板电容的作用

    电容又称电容器(Capacitor)。它在电路中起着隔直流、通交流的重要作用。电容根据其在电路中不同位置的不同功能,分为耦合电容、滤波电容、谐振电容、旁路电容等类别。另外,电容也可按照填充材料(电介质)进行…

电脑启动报鸣声说明

当打开电脑时,听到的不是平时清脆的启动声,而是一次又一次重复的奇怪的报警声时,你能不能马上判断出故障的所在呢?虽然现在多家厂商都设计出一些智能化的功能,能将报警声转换成语音或是指示灯等,但是有这种功能...…

office2003无法正常安装卸载问题解决

一、症状:1。点OFFICE里面的任何一个,比如WORD就会弹出一个错误的提示筐,说的是:这个操作只对当前安装的产品有效,无法运行该命令。系统里面的一些 OFFICE文档也是无法识别的。现在想把OFFICE2003删除,可在控制面板的"添加/删除程…

网络命令net user/net localgroup

很简单的一个网络命令,好多教程都有写: net user: 在运行处输入net user /?可以看到net user 的语法和参数。 net user 可以让我们很方便的为系统添加一个用户并设置密码 net user sky /add:向系统添加一个用户为sky net user sky 1234…

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。