简体   繁体   English

如何禁用“ActiveX控件可能不安全”弹出窗口

[英]How to disable “ActiveX Control May Be Unsafe” popup

In an HTML file on My Computer, I'm trying to use the Scripting.FileSystemObject in a script. 在我的电脑上的HTML文件中,我正在尝试在脚本中使用Scripting.FileSystemObject。 How can I disable the popup saying "Any ActiveX control on this page may be unsafe for scripting"? 如何禁用弹出窗口“此页面上的任何ActiveX控件可能对脚本不安全”?

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. “Internet选项”安全窗格允许用户为各种区域设置“初始化并编写未标记为可安全编写脚本的ActiveX控件”为“启用”,但本地计算机上的文件似乎不在任何列出的区域中。

So I guess the alternate question is "How can I edit the security options for local files?" 所以我想另一个问题是“如何编辑本地文件的安全选项?”

System: Windows XP SP3 系统:Windows XP SP3
Internet Explorer 7 Internet Explorer 7

By pure hackery, I discovered that setting the following registry value does it: 通过纯粹的hackery,我发现设置以下注册表值可以做到:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1201"=dword:00000000

But I'm still wondering whether there's any supported way of doing this. 但我仍然想知道是否有任何支持的方式来做到这一点。

Tools |Internet Options | 工具| Internet选项| Advanced tab .. way down under Security .. "Allow active content to run in files on My Computer" 高级选项卡..在安全下方向下...“允许活动内容在我的计算机上的文件中运行”

as someone mentioned that this should be added to registry [HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\0] "1201"=dword:00000000 正如有人提到这应该添加到注册表[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 但我发现必须为互联网区启用“初始化和脚本未标记为安全的ActiveX控件”

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. 但是这篇文章没有提到IE7,所以IE7可能会有所不同。 XP also has new settings like "Allow active content to run in files on My Computer" under advanced options. XP还具有新设置,例如“允许活动内容在我的计算机上的文件中运行”在高级选项下。

Alternatively, if you rename your local .html file to .hta (a HMTL application), that might be what you're looking for. 或者,如果您将本地.html文件重命名为.hta(HMTL应用程序),那么您可能正在寻找它。 Unless you need all the browser chrome. 除非您需要所有浏览器chrome。

  1. Start Menu, Run and type INETCPL.CPL 单击开始菜单,运行并键入INETCPL.CPL
  2. Click the Security tab 单击“安全”选项卡
  3. In the Internet Zone, click the Custom Level button 在Internet区域中,单击“自定义级别”按钮
  4. Set Initialize and script ActiveX controls not marked as safe to Allow 将“未初始化”和“未标记为安全的ActiveX控件”设置为“允许”

Depends on the version. 取决于版本。 Here's for IE32 on x64 Windows: 这是x64 Windows上的IE32:

Windows Registry Editor Version 5.00 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} \\已实施类别]

[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} \\已实施的类别{7DD95801-9882-11CF-9FA9-00AA006C42C4}]

[HKEY_CLASSES_ROOT\\Wow6432Node\\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\\Implemented Categories{7DD95802-9882-11CF-9FA9-00AA006C42C4}] [HKEY_CLASSES_ROOT \\ Wow6432Node \\ CLSID {0D43FE01-F093-11CF-8940-00A0C9054228} \\已实施的类别{7DD95802-9882-11CF-9FA9-00AA006C42C4}]

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. 我也有ActiveX安全警告(“此页面上的activex控件可能不安全与页面的其他部分进行交互。你想允许这种交互吗?”)在IE11 Win10上,使用以下注册表设置我可以禁止弹出窗口。

[HKEY_USERS\\S-1-5-18\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\0] "1201="dword:00000000". [HKEY_USERS \\ S-1-5-18 \\ Software \\ Microsoft \\ Windows \\ CurrentVersion \\ Internet Settings \\ Zones \\ 0]“1201 =”dword:00000000“。

[HKEY_USERS\\S-1-5-18 is for SYSTEM account & we can also set this for HKCU for current user account. [HKEY_USERS \\ S-1-5-18用于SYSTEM帐户,我们也可以为HKCU设置当前用户帐户。

Activex Controls often prompt an error message while trying to launch course through the local files. 在尝试通过本地文件启动课程时,Activex控件经常会提示错误消息。 (For IE7) (对于IE7)

Please set the following settings under internet option\\Security\\Internet\\custom level\\ 请在Internet选项\\ Security \\ Internet \\ custom level下设置以下设置\\

  1. Run Activex controls and plug ins - Enable 运行Activex控件和插件 - 启用
  2. Script Activex control marked safe for scripting - Enable 脚本Activex控件标记为脚本安全 - 启用
  3. under Scripting - Active Scripting - Enable 在Scripting - Active Scripting - Enable下

Also please check the following check box undertools\\Internet options\\Advanced\\security 1. Allow active content to run in my files on my computer. 另请检查以下复选框底部\\ Internet选项\\高级\\安全性1.允许活动内容在我的计算机上的文件中运行。

~Alpana 〜Alpana

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用WMI枚举所有ActiveX元素? - How to enumerate all ActiveX elements with WMI? 如何在ActiveX / COM对象中搜索方法? - How do I search an ActiveX/COM object for a method? 如何在linux中控制后台进程 - How to control background process in linux 如何从magento禁用其他脚本部分 - How to disable Miscellaneous Scripts section from magento 如何全局禁用Adobe脚本安全警告? - How to globally disable Adobe scripting security warnings? 如何在Linux输出中替换列数据-可能正在使用awk sed等 - How to replace a column data in linux output - may be using awk sed etc Unity 编辑器脚本:如何为 select 和特定的 class 创建自定义弹出窗口 - Unity Editor Scripting: How to create a custom Popup to select a especific class 登录 Linux 服务器后如何获取弹出消息 - How to get popup message after log into Linux server 如何在$ PATH变量中添加目录,以便可以在bash中运行脚本而无需输入整个文件路径? - How can I add a directory to my $PATH variable so that I may run scripts in bash without typing out the entire file path? 如何在spring-data-elasticsearch中激活script.disable_dynamic - How to activate script.disable_dynamic in spring-data-elasticsearch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM