如何禁用“ActiveX 控件可能不安全” 弹出窗口
在“我的电脑”上的 HTML 文件中,我尝试在脚本中使用 Scripting.FileSystemObject。 如何禁用弹出窗口“此页面上的任何 ActiveX 控件对于脚本编写可能不安全”?
“Internet 选项”安全窗格允许将“初始化并编写未标记为可安全编写脚本的 ActiveX 控件”设置为对各个区域启用,但本地计算机上的文件似乎不在任何列出的区域中。
所以我想另一个问题是“如何编辑本地文件的安全选项?”
系统: Windows XP SP3
互联网浏览器 7
In an HTML file on My Computer, I'm trying to use the Scripting.FileSystemObject in a script. How can I disable the popup saying "Any ActiveX control on this page may be unsafe for scripting"?
The "Internet Options" Security pane allows one to set "Initialize and script ActiveX controls not marked as safe for scripting" to Enabled for various zones, but files on the local computer don't appear to be in any of the listed zones.
So I guess the alternate question is "How can I edit the security options for local files?"
System:
Windows XP SP3
Internet Explorer 7
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
通过纯粹的黑客行为,我发现设置以下注册表值可以做到这一点:
但我仍然想知道是否有任何支持的方法来做到这一点。
By pure hackery, I discovered that setting the following registry value does it:
But I'm still wondering whether there's any supported way of doing this.
工具 |Internet 选项 | 高级选项卡..安全性下方..“允许活动内容在我的计算机上的文件中运行”
Tools |Internet Options | Advanced tab .. way down under Security .. "Allow active content to run in files on My Computer"
有一种注册表方法可以让“本地计算机”显示为安全区域之一。 但本文没有提到 IE7,因此 IE7 可能会有所不同。 XP 还在高级选项下提供了新设置,例如“允许活动内容在我的计算机上的文件中运行”。
或者,如果您将本地 .html 文件重命名为 .hta(HMTL 应用程序),这可能就是您正在寻找的文件。 除非你需要所有的浏览器chrome。
There's a registry way of getting "Local Computer" to appear as one of the security zones. But this article doesn't mention IE7, so IE7 might be different. XP also has new settings like "Allow active content to run in files on My Computer" under advanced options.
Alternatively, if you rename your local .html file to .hta (a HMTL application), that might be what you're looking for. Unless you need all the browser chrome.
正如有人提到的,这应该添加到注册表中
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1201"=dword:00000000
但我发现对于 Internet 区域也必须启用“初始化和脚本未标记为安全的 ActiveX 控件”
as someone mentioned that this should be added to registry
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1201"=dword:00000000
but i found that "Initialize and script ActiveX controls not marked as safe" must be enabled too for internet zone
取决于版本。 适用于 x64 Windows 上的 IE32:
Windows 注册表编辑器版本 5.00
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories]
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093 -11CF-8940-00A0C9054228} \已实现的类别{7DD95801-9882-11CF-9FA9-00AA006C42C4}]
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\已实现的类别{7DD95802-9882-11CF- 9FA9-00AA006C42C4}]
Depends on the version. Here's for IE32 on x64 Windows:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories]
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories{7DD95801-9882-11CF-9FA9-00AA006C42C4}]
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories{7DD95802-9882-11CF-9FA9-00AA006C42C4}]
我还在 IE11 Win10 和 Windows 上收到 ActiveX 安全警告(“此页面上的 ActiveX 控件与页面其他部分交互可能不安全。是否允许此交互?”) 通过以下注册表设置,我可以抑制该弹出窗口。
[HKEY_USERS\S-1-5-18 用于 SYSTEM 帐户,我们也可以为 HKCU 设置此帐户strong> 当前用户帐户。
I also had ActiveX security warning ("an activex control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction ?") on IE11 Win10 & with the below registry setting I could suppress that popup.
[HKEY_USERS\S-1-5-18 is for SYSTEM account & we can also set this for HKCU for current user account.
Activex 控件在尝试通过本地文件启动课程时经常提示错误消息。 (对于 IE7)
设置以下设置
另外请检查以下检查工具\Internet选项\高级\安全下的框
1. 允许活动内容在我的计算机上的文件中运行。
〜阿尔帕纳
Activex Controls often prompt an error message while trying to launch course through the local files. (For IE7)
Please set the following settings under internet option\Security\Internet\custom level\
Also please check the following check box undertools\Internet options\Advanced\security
1. Allow active content to run in my files on my computer.
~Alpana