Created
December 4, 2016 14:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FEATURE_BROWSER_EMULATION fix for xwidget.exe and sites without <meta http-equiv="X-UA-Compatible" content="IE=11" /> | |
# https://blogs.msdn.microsoft.com/patricka/2015/01/12/controlling-webbrowser-control-compatibility/ | |
# Test Sites | |
# http://detectmybrowser.com/ | |
# http://kluge.in-chemnitz.de/tools/browser.php | |
# auth: jfrmilner | |
<# | |
https://msdn.microsoft.com/library/ee330730(v=vs.85).aspx#browser_emulation | |
The values are as follows: | |
IE7 : 7000 | |
IE8 : 8000 | |
IE9 : 9000 | |
IE10 : 10000 | |
IE11: 11000 | |
The forced values are as follows: | |
IE8 : 8888 | |
IE9 : 9999 | |
IE10 : 10001 | |
IE11: 11001 | |
#> | |
$value = 11001 | |
Get-ItemProperty -path "hklm:\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -Name 'xwidget.exe' | |
Set-ItemProperty -path "hklm:\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -name 'xwidget.exe' -value $value | |
Get-ItemProperty -Path "hkcu:\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -Name 'xwidget.exe' | |
Set-ItemProperty -path "hkcu:\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -name 'xwidget.exe' -value $value | |
Get-ItemProperty -path "hklm:\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -Name 'xwidget.exe' | |
Set-ItemProperty -path "hklm:\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -Name 'xwidget.exe' -Value $value | |
Get-ItemProperty -path "hklm:\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -Name 'xwtest.exe' | |
Set-ItemProperty -path "hklm:\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -name 'xwtest.exe' -value $value | |
Get-ItemProperty -Path "hkcu:\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -Name 'xwtest.exe' | |
Set-ItemProperty -path "hkcu:\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -name 'xwtest.exe' -value $value | |
Get-ItemProperty -path "hklm:\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -Name 'xwtest.exe' | |
Set-ItemProperty -path "hklm:\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" -Name 'xwtest.exe' -Value $value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment