vb.net 如何以编程方式将网站添加到兼容性列表 Internet Explorer 11?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19770933/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I programmatically add website to compatibility list internet explorer 11?
提问by Landmine
I've tried adding registry entries at:
我尝试在以下位置添加注册表项:
Hive: HKEY_CURRENT_USER
Key Path: Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\PolicyList\
Value name: sub.companyname.com
Value data: sub.companyname.com
However in Internet Explorer 11 this method does not work as it seems the list has moved.
但是,在 Internet Explorer 11 中,此方法不起作用,因为列表似乎已移动。
My.Computer.Registry.SetValue("Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\PolicyList", "sub.companyname.com", "sub.companyname.com")
采纳答案by Dave
It appears that under Windows 8.1 Enterprise/IE11 the entry is a binary one - this is where I see the entries added under Tools/compatibility View Settings in the registry on my system:
似乎在 Windows 8.1 Enterprise/IE11 下,该条目是一个二进制条目 - 这是我在系统注册表中的工具/兼容性视图设置下看到添加的条目的地方:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData
Look for a Binary value called UserFilter - it's a bit hard to read when you look into it but you can tell it holds your entries.
查找名为 UserFilter 的 Binary 值 - 当您查看它时有点难以阅读,但您可以看出它包含您的条目。
We have several sites we'll need to add to the list so most likely will export the list from a "master" computer then push it through Group Policy Preferences at least once for initial settings. Unsure how we'll script additional entries at this point so that when users add their "personal" settings we don't overwrite the value but append to it but one thing at a time I guess.
我们有几个站点需要添加到列表中,因此很可能会从“主”计算机导出列表,然后通过组策略首选项至少推送一次以进行初始设置。不确定此时我们将如何编写其他条目的脚本,以便当用户添加他们的“个人”设置时,我们不会覆盖该值,而是附加到它,但我猜是一次添加一件事。
回答by Rolo
I had the same problem, but creating the registry key you mention works for me.
我遇到了同样的问题,但是创建您提到的注册表项对我有用。
Have you tried creating the registry key by hand?
您是否尝试过手动创建注册表项?
If you are running 32 bit IE 11, you must create the registry key in 32 bit registry hive, if you are running 64 bit IE 11 you bust create the registry key in 64 bit registry hive.
如果您运行的是 32 位 IE 11,则必须在 32 位注册表配置单元中创建注册表项,如果您运行的是 64 位 IE 11,则必须在 64 位注册表配置单元中创建注册表项。
IE 11 32 bit on:
IE 11 32 位:
Win 32 bit -> HKEY_CURRENT_USER\Software\Policies...
Win 32 位 -> HKEY_CURRENT_USER\Software\Policies...
Win 64 bit -> HKEY_CURRENT_USER\Wow6432Node\Software\Policies...
Win 64 位 -> HKEY_CURRENT_USER\Wow6432Node\Software\Policies...
IE 11 64 bit on:
IE 11 64 位:
Win 32 bit -> Can't install IE 64 bit
Win 32 位 -> 无法安装 IE 64 位
Win 64 bit -> HKEY_CURRENT_USER\Software\Policies...
Win 64 位 -> HKEY_CURRENT_USER\Software\Policies...
Remember:
记住:
- If you have IE open when you create the registry key, you need to restart it.
- The new domain allowed to use compatibility mode won't be displayed in compatibility view settings list.
- 如果您在创建注册表项时打开了 IE,则需要重新启动它。
- 允许使用兼容模式的新域不会显示在兼容性视图设置列表中。
回答by user6211137
W7 – IE11
W7 – IE11
Hive: HKEY_CURRENT_USER
蜂巢: HKEY_CURRENT_USER
Key Path: Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\DisableSiteListEditing
关键路径: Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\DisableSiteListEditing
Right Click on DisableSiteListEditing
右键单击 DisableSiteListEditing
Modify
调整
Change Value Data from 1
to 0
将值数据从 更改1
为0