加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows – 读取Internet Explorer保护模式注册表

发布时间:2020-12-14 05:37:51 所属栏目:Windows 来源:网络整理
导读:我正在学习vbscript的注册表.我想知道我会通过使用vbscript来检查Internet Explorer的保护模式功能的strValuname和dwValue吗? 我尝试在strKeyPath上搜索注册表无济于事.我也无法找到注册表路径 "HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVers
我正在学习vbscript的注册表.我想知道我会通过使用vbscript来检查Internet Explorer的保护模式功能的strValuname和dwValue吗?

我尝试在strKeyPath上搜索注册表无济于事.我也无法找到注册表路径

"HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionPoliciesSystemEnableMIC"

当我找不到上面的注册表位置时,我使用的是windows7.

谢谢

解决方法

这是一个小的vbs脚本,它禁用所有四个区域的保护模式:

Const HKEY_CURRENT_USER = &H80000001

strComputer = "."

Set ScriptMe=GetObject("winmgmts:{impersonationLevel=impersonate}!" & _
    strComputer & "rootdefault:StdRegProv")

'Disable protected mode for local intranet'
strKeyPath = "SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1"
strValueName = "2500"
dwValue = 1
ScriptMe.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue

'Disable protected mode for trusted pages'
strKeyPath = "SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2"
strValueName = "2500"
dwValue = 3
ScriptMe.SetDWORDValue HKEY_CURRENT_USER,dwValue

'Disable protected mode for internet'
strKeyPath = "SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3"
strValueName = "2500"
dwValue = 3
ScriptMe.SetDWORDValue HKEY_CURRENT_USER,dwValue

'Disable protected mode for restricted sites'
strKeyPath = "SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones4"
strValueName = "2500"
dwValue = 3
ScriptMe.SetDWORDValue HKEY_CURRENT_USER,dwValue

将其保存为* .vbs并双击它以运行它.从命令行使用此命令:

cscript.exe PATH_TO_THE_VBS_FILE

最后,如果您想在注册表中使用regedit手动执行此操作,0则在以下文件夹中启用,3以禁用名称为2500的DWORD:

本地Intranet的保护模式

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1

受信任页面的保护模式

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2

互联网保护模式

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3

受限制站点的保护模式

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones4

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读