none
Adding sites to the compatibility view settings through registry using powershell RRS feed

  • Question

  • Hi Guys,

    I want to add sites to the compatibility view settings and found the registry key for the same.  The registry key for the setting is UserFilter' found under 'HKCU:\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData' . I have added the sites in one system and got the value of UserFilter using powershell code and trying to add it to other systems. 

    The code is as shown below

     $array = Get-ItemProperty 'HKCU:\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData' -Name UserFilter
     $array.UserFilter | Out-File C:\DD.txt
     function test{
     $values = gc C:\DD.txt
     foreach($value in $values)
     {
     
     
     $test =  [System.Convert]::ToString($value,16)
    
    
    
    if($test -eq '0')
     {
     '0x'+ $test.ToUpper() + '0'
     }
     else{
     if($test.Length -eq '1')
     {
     '0x0'+ $test.ToUpper()
     }
     else
     {
      
     '0x'+ $test.ToUpper()
     }
     }
    #'{0:X4}' -f 0x1
     } 
     }
    
     test | out-file C:\comp.txt
    
     try{
     if(Get-ItemProperty 'HKCU:\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData' -Name 'UserFilter' -ErrorAction Stop)
     {
      Set-ItemProperty 'HKCU:\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData' -Name 'UserFilter' -value ([byte[]](0x41,0x1F,0x00,0x00,0x53,0x08,0xAD,0xBA,0x0C,0x00,0x00,0x00,0xD2,0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x28,0x72,0x30,0xF6,0x1B,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x07,0x00,0x66,0x00,0x63,0x00,0x72,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x46,0xD4,0x77,0xC4,0x1E,0xF5,0xD0,0x01,0x01,0x00,0x00,0x07,0x00,0x66,0x00,0x72,0x00,0x73,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x96,0x3D,0x4C,0xE5,0x1E,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0A,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x63,0x00,0x6D,0x00,0x64,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x8A,0xE9,0x36,0x03,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0C,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x65,0x00,0x74,0x00,0x68,0x00,0x69,0x00,0x63,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x29,0x69,0x0E,0x42,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0A,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x69,0x00,0x61,0x00,0x64,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x5F,0xC1,0x7C,0x55,0x1F,0xD0,0x01,0x01,0x00,0x00,0x00,0x06,0x00,0x69,0x00,0x64,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0xAA,0x1D,0xAC,0x66,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x09,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x69,0x00,0x74,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x75,0x85,0x31,0x7D,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0A,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x70,0x00,0x64,0x00,0x64,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x46,0xCD,0xDA,0xBE,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x10,0x00,0x67,0x00,0x6F,0x00,0x6C,0x00,0x64,0x00,0x65,0x00,0x6E,0x00,0x76,0x00,0x69,0x00,0x73,0x00,0x69,0x00,0x6F,0x00,0x6E,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0xEC,0xB6,0xCD,0xD4,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x08,0x00,0x72,0x00,0x6D,0x00,0x63,0x00,0x64,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x31,0xE4,0xBC,0x91,0x20,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0B,0x00,0x64,0x00,0x61,0x00,0x74,0x00,0x61,0x00,0x66,0x00,0x6C,0x00,0x6F,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x52,0xBA,0x82,0xC6,0x20,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0D,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x63,0x00,0x62,0x00,0x67,0x00,0x73,0x00,0x6D,0x00,0x78,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00))
      }
    
      else
      {
      New-ItemProperty  'HKCU:\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData' -Name 'UserFilter' -PropertyType Binary -value ([byte[]](0x41,0x1F,0x00,0x00,0x53,0x08,0xAD,0xBA,0x0C,0x00,0x00,0x00,0xD2,0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x28,0x72,0x30,0xF6,0x1B,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x07,0x00,0x66,0x00,0x63,0x00,0x72,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x46,0xD4,0x77,0xC4,0x1E,0xF5,0xD0,0x01,0x01,0x00,0x00,0x07,0x00,0x66,0x00,0x72,0x00,0x73,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x96,0x3D,0x4C,0xE5,0x1E,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0A,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x63,0x00,0x6D,0x00,0x64,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x8A,0xE9,0x36,0x03,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0C,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x65,0x00,0x74,0x00,0x68,0x00,0x69,0x00,0x63,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x29,0x69,0x0E,0x42,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0A,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x69,0x00,0x61,0x00,0x64,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x5F,0xC1,0x7C,0x55,0x1F,0xD0,0x01,0x01,0x00,0x00,0x00,0x06,0x00,0x69,0x00,0x64,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0xAA,0x1D,0xAC,0x66,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x09,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x69,0x00,0x74,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x75,0x85,0x31,0x7D,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0A,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x70,0x00,0x64,0x00,0x64,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x46,0xCD,0xDA,0xBE,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x10,0x00,0x67,0x00,0x6F,0x00,0x6C,0x00,0x64,0x00,0x65,0x00,0x6E,0x00,0x76,0x00,0x69,0x00,0x73,0x00,0x69,0x00,0x6F,0x00,0x6E,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0xEC,0xB6,0xCD,0xD4,0x1F,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x08,0x00,0x72,0x00,0x6D,0x00,0x63,0x00,0x64,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x31,0xE4,0xBC,0x91,0x20,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0B,0x00,0x64,0x00,0x61,0x00,0x74,0x00,0x61,0x00,0x66,0x00,0x6C,0x00,0x6F,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x0C,0x00,0x00,0x00,0x52,0xBA,0x82,0xC6,0x20,0xF5,0xD0,0x01,0x01,0x00,0x00,0x00,0x0D,0x00,0x6B,0x00,0x76,0x00,0x62,0x00,0x63,0x00,0x62,0x00,0x67,0x00,0x73,0x00,0x6D,0x00,0x78,0x00,0x2E,0x00,0x63,0x00,0x6F,0x00,0x6D,0x00))
      
      }
      }
    
      catch{ }
    

    But It is not showing up in the IE . Please help me guys. Sorry If I missed on anything that has to be provided. 


    Naveen Basati

    Tuesday, September 22, 2015 12:29 PM

Answers

All replies