How can I programmatically add website to compatibility list internet explorer 11?

試著忘記壹切 提交于 2019-12-20 11:28:37

问题


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.

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

回答1:


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

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.




回答2:


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.

IE 11 32 bit on:

Win 32 bit -> HKEY_CURRENT_USER\Software\Policies...

Win 64 bit -> HKEY_CURRENT_USER\Wow6432Node\Software\Policies...

IE 11 64 bit on:

Win 32 bit -> Can't install IE 64 bit

Win 64 bit -> 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.



回答3:


W7 – IE11

Hive: HKEY_CURRENT_USER

Key Path: Software\Policies\Microsoft\Internet Explorer\BrowserEmulation\DisableSiteListEditing

Right Click on DisableSiteListEditing

Modify

Change Value Data from 1 to 0



来源:https://stackoverflow.com/questions/19770933/how-can-i-programmatically-add-website-to-compatibility-list-internet-explorer-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!