Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: RE: ActiveX warning in IE5


Message #1 by "Volker Schröder" <volker.schroeder@t...> on Wed, 22 May 2002 10:24:47
Courtesy of the great Michael Harris:
'=====================================================
'Exposes the "My Computer" Internet Zone on the
'Internet Options | Security tab to allow custom
'settings for local HTML files...
'
'See the following MS KB article...
'
'Description of Internet Explorer Security Zones Registry Entries
'http://support.microsoft.com/support/kb/articles/q182/5/69.asp
'
'In general, there's a "My Computer" security zone that is
'normally not displayed by IE in the Security dialog.
'This KB article explains the various registry keys and
'named values that have to do with IE security.
'
'=====================================================

set shell = createobject("wscript.shell")
'=====
'Changing this under the HKLM makes it effective for all users
'at next logon...
'=====
HKLM_MyComputer_key = _
  "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion" _
&"\Internet Settings\Zones\0\"
valuename = "Flags"
shell.RegWrite HKLM_MyComputer_key & valuename, 1, "REG_DWORD"
'=====
'Changing this under the HKCU makes it effective for this user
'immediately and at every logon...
'=====
HKCU_MyComputer_key = _
  "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion" _
&"\Internet Settings\Zones\0\"
valuename = "Flags"
shell.RegWrite HKCU_MyComputer_key & valuename, 1, "REG_DWORD"

msgbox _
  "The 'My Computer' security zone " _
& "is now visible in the IE security dialog."

wscript.quit



--



>From: "Volker Schröder" <volker.schroeder@t...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] RE: ActiveX warning in IE5
>Date: Thu, 23 May 2002 09:36:10
>
>I found the solution myself:
>
>there are not only four but five zones used by the Internet Explorer. The
>fifth is afaik not configurable in any way and is called "My Computer".
>
>While localhost belongs to "Local Intranet", 127.0.0.1 belongs
>to "Internet" and \\server\dev is "Local Intranet" again.
>C:\dev belongs to "My Computer" anyway.
>
>---
>
>Improve your web design skills with these new books from Glasshaus.
>
>Usable Web Menus
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
>r-20
>Constructing Accessible Web Sites
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
>r-20
>Practical JavaScript for the Usable Web
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
>r-20




_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


  Return to Index