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

系统环境: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文件后点击右键-安装即可。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值