{"id":84,"date":"2019-08-07T10:55:11","date_gmt":"2019-08-07T09:55:11","guid":{"rendered":"https:\/\/www.syslab.network\/?page_id=84"},"modified":"2019-09-24T12:17:57","modified_gmt":"2019-09-24T11:17:57","slug":"ie-compatibility-view","status":"publish","type":"page","link":"https:\/\/www.syslab.network\/index.php\/vbscripts\/internet-explorer\/ie-compatibility-view\/","title":{"rendered":"IE Compatibility View"},"content":{"rendered":"<div class=\"post-content\"><div id=\"ccchildpages-1\" class=\"ccchildpages fourcol simple ccclearfix\"><ul class=\"ccchildpages_list ccclearfix\"><li class=\"page_item page-item-36\"><a href=\"https:\/\/www.syslab.network\/index.php\/vbscripts\/internet-explorer\/internet-explorer-exceptions-trusted-sites\/\">IE Exceptions (Trusted Sites)<\/a><\/li>\n<li class=\"page_item page-item-65\"><a href=\"https:\/\/www.syslab.network\/index.php\/vbscripts\/internet-explorer\/ie-exceptions-privacy\/\">IE Exceptions (Privacy)<\/a><\/li>\n<li class=\"page_item page-item-70\"><a href=\"https:\/\/www.syslab.network\/index.php\/vbscripts\/internet-explorer\/ie-ssl-tls\/\">IE SSL \/ TLS<\/a><\/li>\n<li class=\"page_item page-item-129\"><a href=\"https:\/\/www.syslab.network\/index.php\/vbscripts\/internet-explorer\/ie-proxy\/\">IE Proxy<\/a><\/li><\/ul><\/div>\n\n\n\n<p> Of the IE options this one was the hardest and  there still is  no easy way to do it. <\/p>\n\n\n\n<p>Until now  we have been using  DWORD, REG_SZ and REG_BINARY keys but with simple values, and for every site you create one key.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" width=\"380\" height=\"463\" src=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/cviewmenu.png\" alt=\"\" class=\"wp-image-131\" srcset=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/cviewmenu.png 380w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/cviewmenu-246x300.png 246w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/cviewmenu-100x122.png 100w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/cviewmenu-150x183.png 150w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/cviewmenu-200x244.png 200w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/cviewmenu-300x366.png 300w\" sizes=\"(max-width: 380px) 100vw, 380px\" \/><figcaption>Compatibility View Menu<\/figcaption><\/figure><\/div>\n\n\n\n<p>The path in registry starts on HKEY_CURRENT_USER<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror cm-s-blackboard\" data-setting=\"{&quot;mode&quot;:&quot;vbscript&quot;,&quot;mime&quot;:&quot;text\/vbscript&quot;,&quot;theme&quot;:&quot;blackboard&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;VBScript&quot;,&quot;modeName&quot;:&quot;vb&quot;}\">strPath = &quot;Software\\Microsoft\\Internet Explorer\\BrowserEmulation\\ClearableListData&quot;<\/pre><\/div>\n\n\n\n<p>In Compatibility View we only have one key for every site, it's a REG_BINARY with a string with all sites you insert.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" width=\"1024\" height=\"576\" src=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/CView-1-1024x576.png\" alt=\"\" class=\"wp-image-86\" srcset=\"https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/CView-1-1024x576.png 1024w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/CView-1-300x169.png 300w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/CView-1-768x432.png 768w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/CView-1-100x56.png 100w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/CView-1-150x84.png 150w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/CView-1-200x112.png 200w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/CView-1-450x253.png 450w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/CView-1-600x337.png 600w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/CView-1-900x506.png 900w, https:\/\/www.syslab.network\/wp-content\/uploads\/2019\/08\/CView-1.png 1076w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>REG_BINARY C. View<\/figcaption><\/figure><\/div>\n\n\n\n<p>So for this we will always have to enter the first values in a computer, read the registry and get the hex values.<\/p>\n\n\n\n<p>Then we have to split the values with commas like this:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror cm-s-blackboard\" data-setting=\"{&quot;mode&quot;:&quot;vbscript&quot;,&quot;mime&quot;:&quot;text\/vbscript&quot;,&quot;theme&quot;:&quot;blackboard&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;VBScript&quot;,&quot;modeName&quot;:&quot;vb&quot;}\">strHexValue = &quot;41,1F,00,00,53,08,AD,BA,02,00,00,00,6C,00,00,00,01,00,00,00,02,00,00,00,0C,00,00,00,B8,17,0B,96,3A,52,D5,01,01,00,00,00,0F,00,31,00,39,00,32,00,2E,00,31,00,36,00,38,00,2E,00,31,00,30,00,30,00,2E,00,31,00,30,00,30,00,0C,00,00,00,6A,84,79,9B,3A,52,D5,01,01,00,00,00,0F,00,31,00,39,00,32,00,2E,00,31,00,36,00,38,00,2E,00,31,00,30,00,30,00,2E,00,31,00,30,00,31,00&quot;<\/pre><\/div>\n\n\n\n<p>And at last we write the value to the key<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror cm-s-blackboard\" data-setting=\"{&quot;mode&quot;:&quot;vbscript&quot;,&quot;mime&quot;:&quot;text\/vbscript&quot;,&quot;theme&quot;:&quot;blackboard&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;VBScript&quot;,&quot;modeName&quot;:&quot;vb&quot;}\">arrValue = Split(strHexValue, &quot;,&quot;)\n\tReDim uBinary(UBound(arrValue))\n\t\tFor i = LBound(arrValue) To UBound(arrValue)\n\t\t\tuBinary(i) = CLng(&quot;&amp;h&quot; &amp; arrValue(i))\n\tNext\n\n\tConst HKEY_CURRENT_USER = &amp;H80000001\n\tSet objRegistry = GetObject(&quot;Winmgmts:root\\default:StdRegProv&quot;)\n\t\tstrPath = &quot;Software\\Microsoft\\Internet Explorer\\BrowserEmulation\\ClearableListData&quot;\n\t\tstrValueToWrite = &quot;UserFilter&quot;\n\t\tobjRegistry.CreateKey HKEY_CURRENT_USER, strPath\n\tintReturn = objRegistry.SetBinaryValue(HKEY_CURRENT_USER, strPath, strValueToWrite, uBinary)<\/pre><\/div>\n\n\n\n<h3>Script IE Exceptions + Compatibility View<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror cm-s-blackboard\" data-setting=\"{&quot;mode&quot;:&quot;vbscript&quot;,&quot;mime&quot;:&quot;text\/vbscript&quot;,&quot;theme&quot;:&quot;blackboard&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;VBScript&quot;,&quot;modeName&quot;:&quot;vb&quot;}\">Exception &quot;192.168.100.100&quot; \nException &quot;192.168.100.101&quot;\n\n\nFunction Exception(Site) \n\n    Set WshShell = Wscript.CreateObject(&quot;Wscript.Shell&quot;) \n\t\n\t'------Trusted Sites------' \n\t\n    strRegKey = &quot;HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\&quot; \n\t\tWshShell.RegWrite strRegKey &amp; Site &amp; &quot;\\&quot; ,&quot;&quot; , &quot;REG_SZ&quot;\n\t\tWshShell.RegWrite strRegKey &amp; Site &amp; &quot;\\&quot; &amp; &quot;:Range&quot; , Site, &quot;REG_SZ&quot; \n\t\tWshShell.RegWrite strRegKey &amp; Site &amp; &quot;\\*&quot;, &quot;2&quot;, &quot;REG_DWORD&quot; \n\t\t\n\t\t'------Privacy::Sites------' \n\t\n\tstrRegKey = &quot;HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\P3P\\History\\&quot; \n   \n\t\tWshShell.RegWrite strRegKey &amp; Site &amp; &quot;\\&quot;, 1, &quot;REG_DWORD&quot; \n\t\t\n\t\t'------Privacy::Pop-up Blocker------'\n\t\n\tstrRegKey = &quot;HKCU\\Software\\Microsoft\\Internet Explorer\\New Windows\\Allow\\&quot;\n\t\n\t\tWshShell.RegWrite strRegKey &amp; Site, 0, &quot;REG_BINARY&quot;\n\t\t\n\t\t'------SSL\/TLS------'\n\t\n\tstrRegKey = &quot;HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\SecureProtocols&quot;\n\t\n\t\tWshShell.RegWrite strRegKey, 2730, &quot;REG_DWORD&quot;\n\t\n'------Compatibility View------'\n\n\t\tstrHexValue = &quot;41,1F,00,00,53,08,AD,BA,02,00,00,00,6C,00,00,00,01,00,00,00,02,00,00,00,0C,00,00,00,B8,17,0B,96,3A,52,D5,01,01,00,00,00,0F,00,31,00,39,00,32,00,2E,00,31,00,36,00,38,00,2E,00,31,00,30,00,30,00,2E,00,31,00,30,00,30,00,0C,00,00,00,6A,84,79,9B,3A,52,D5,01,01,00,00,00,0F,00,31,00,39,00,32,00,2E,00,31,00,36,00,38,00,2E,00,31,00,30,00,30,00,2E,00,31,00,30,00,31,00&quot;\n\narrValue = Split(strHexValue, &quot;,&quot;)\nReDim uBinary(UBound(arrValue))\nFor i = LBound(arrValue) To UBound(arrValue)\n    uBinary(i) = CLng(&quot;&amp;h&quot; &amp; arrValue(i))\nNext\n\nConst HKEY_CURRENT_USER = &amp;H80000001\n\tSet objRegistry = GetObject(&quot;Winmgmts:root\\default:StdRegProv&quot;)\n\tstrPath = &quot;Software\\Microsoft\\Internet Explorer\\BrowserEmulation\\ClearableListData&quot;\n\tstrValueToWrite = &quot;UserFilter&quot;\n\tobjRegistry.CreateKey HKEY_CURRENT_USER, strPath\n\tintReturn = objRegistry.SetBinaryValue(HKEY_CURRENT_USER, strPath, strValueToWrite, uBinary)\n\n\t\n\t\nEnd Function\n<\/pre><\/div>\n\n\n<div id=\"ccchildpages-2\" class=\"ccchildpages fourcol simple ccclearfix\"><ul class=\"ccchildpages_list ccclearfix\"><li class=\"page_item page-item-36\"><a href=\"https:\/\/www.syslab.network\/index.php\/vbscripts\/internet-explorer\/internet-explorer-exceptions-trusted-sites\/\">IE Exceptions (Trusted Sites)<\/a><\/li>\n<li class=\"page_item page-item-65\"><a href=\"https:\/\/www.syslab.network\/index.php\/vbscripts\/internet-explorer\/ie-exceptions-privacy\/\">IE Exceptions (Privacy)<\/a><\/li>\n<li class=\"page_item page-item-70\"><a href=\"https:\/\/www.syslab.network\/index.php\/vbscripts\/internet-explorer\/ie-ssl-tls\/\">IE SSL \/ TLS<\/a><\/li>\n<li class=\"page_item page-item-129\"><a href=\"https:\/\/www.syslab.network\/index.php\/vbscripts\/internet-explorer\/ie-proxy\/\">IE Proxy<\/a><\/li><\/ul><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Of the IE options this one was the hardest and<a href=\"https:\/\/www.syslab.network\/index.php\/vbscripts\/internet-explorer\/ie-compatibility-view\/\">Read More<i class=\"fa fa-long-arrow-right\" aria-hidden=\"true\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":95,"parent":56,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_mi_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"_links":{"self":[{"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/pages\/84"}],"collection":[{"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/comments?post=84"}],"version-history":[{"count":12,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/pages\/84\/revisions"}],"predecessor-version":[{"id":336,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/pages\/84\/revisions\/336"}],"up":[{"embeddable":true,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/pages\/56"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/media\/95"}],"wp:attachment":[{"href":"https:\/\/www.syslab.network\/index.php\/wp-json\/wp\/v2\/media?parent=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}