如何以编程方式将网站添加到兼容性列表Internet Explorer 11? [英] How can I programmatically add website to compatibility list internet explorer 11?

查看:362
本文介绍了如何以编程方式将网站添加到兼容性列表Internet Explorer 11?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在以下位置添加注册表项:

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

但是在Internet Explorer 11中,此方法似乎无效,因为列表已移动.

However in Internet Explorer 11 this method does not work as it seems the list has moved.

My.Computer.Registry.SetValue("Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\PolicyList", "sub.companyname.com", "sub.companyname.com")

推荐答案

看来,在Windows 8.1 Enterprise/IE11下,该条目是二进制文件-在这里,我可以看到注册表中工具/兼容性视图设置"下添加的条目.在我的系统上:

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:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData

寻找一个名为UserFilter的二进制值-当您查看它时,读取它有点困难,但是您可以告诉它保留了您的条目.

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.

我们需要将几个站点添加到列表中,因此最有可能从主"计算机中导出列表,然后通过组策略首选项将其至少推送一次以进行初始设置.不确定我们现在如何编写其他条目的脚本,以便在用户添加个人"设置时,我们不会覆盖该值,而是在每次附加一件东西之后才覆盖它.

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.

这篇关于如何以编程方式将网站添加到兼容性列表Internet Explorer 11?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆