yos*_*594 3 windows registry vbscript internet-explorer protected-mode
我正在学习vbscript的注册表.我想知道我会通过使用vbscript 来检查strValuname和dwValue浏览器保护模式功能吗?
我尝试在注册表上搜索strKeyPath无效.我也无法找到注册表路径
"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableMIC"
Run Code Online (Sandbox Code Playgroud)
当我找不到上面的注册表位置时,我使用的是windows7.
谢谢
Sve*_*hti 13
这是一个小的vbs脚本,它禁用所有四个区域的保护模式:
Const HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set ScriptMe=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
'Disable protected mode for local intranet'
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1\"
strValueName = "2500"
dwValue = 1
ScriptMe.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
'Disable protected mode for trusted pages'
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2\"
strValueName = "2500"
dwValue = 3
ScriptMe.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
'Disable protected mode for internet'
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\"
strValueName = "2500"
dwValue = 3
ScriptMe.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
'Disable protected mode for restricted sites'
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4\"
strValueName = "2500"
dwValue = 3
ScriptMe.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
Run Code Online (Sandbox Code Playgroud)
将其保存为*.vbs并双击它以运行它.从命令行使用此命令:
cscript.exe PATH_TO_THE_VBS_FILE
Run Code Online (Sandbox Code Playgroud)
最后,如果您想在注册表中使用regedit手动执行此操作,0则在以下文件夹中启用,3以禁用名称为2500的DWORD:
本地Intranet的保护模式
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1\
Run Code Online (Sandbox Code Playgroud)
受信任页面的保护模式
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2\
Run Code Online (Sandbox Code Playgroud)
互联网保护模式
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\
Run Code Online (Sandbox Code Playgroud)
受限制站点的保护模式
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4\
Run Code Online (Sandbox Code Playgroud)
小智 6
您可以通过阅读"2500"键来完成此操作
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3
Run Code Online (Sandbox Code Playgroud)
其中3意味着保护模式被禁用并且0意味着启用.
| 归档时间: |
|
| 查看次数: |
31809 次 |
| 最近记录: |