wasserfa89
Technical User
Hi all
On Internet Explorer 9 256 Bit we encouter the problem that we can't adding sites to the intranet zone even with the script below:
--------------------------------------------------------------------------------------------------------------------------------------------
' Adds an IP to the Security Sites
Option Explicit
Dim oShell
Set oShell = WScript.CreateObject("WScript.Shell")
' Dim sSite, sDValue, sZone, sKey, sZonesPath, aKeys, aKey
sZonesPath="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains"
sSite=0
sDValue=1
sZone=2
' create key
aKeys = Array( _
Array(sZonesPath & "10.25.2.99\","","2"), _
Array(sZonesPath & "10.25.2.99\","","1") _
)
For Each aKey In aKeys
' create key for sSite
oShell.RegWrite aKey(sSite), aKey(sDvalue)
' add * dword under the site's key and set the sonze
sKey=aKey(sSite) & "*"
oShell.RegWrite sKey, aKey(sZone), "REG_DWORD"
MsgBox "Done"
Next
-----------------------------------------------------------------------------------------------------------------------------
it dosen't work
The IPs above won't be added to the Sites
and we are not able to add manually sites to the Intranet Zone
Any ideas? IE 9 Problem?
On Internet Explorer 9 256 Bit we encouter the problem that we can't adding sites to the intranet zone even with the script below:
--------------------------------------------------------------------------------------------------------------------------------------------
' Adds an IP to the Security Sites
Option Explicit
Dim oShell
Set oShell = WScript.CreateObject("WScript.Shell")
' Dim sSite, sDValue, sZone, sKey, sZonesPath, aKeys, aKey
sZonesPath="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains"
sSite=0
sDValue=1
sZone=2
' create key
aKeys = Array( _
Array(sZonesPath & "10.25.2.99\","","2"), _
Array(sZonesPath & "10.25.2.99\","","1") _
)
For Each aKey In aKeys
' create key for sSite
oShell.RegWrite aKey(sSite), aKey(sDvalue)
' add * dword under the site's key and set the sonze
sKey=aKey(sSite) & "*"
oShell.RegWrite sKey, aKey(sZone), "REG_DWORD"
MsgBox "Done"
Next
-----------------------------------------------------------------------------------------------------------------------------
it dosen't work
The IPs above won't be added to the Sites
and we are not able to add manually sites to the Intranet Zone
Any ideas? IE 9 Problem?