views:

370

answers:

0

I have started a VBS to change all the Internet Explorer settings in Trusted Sites to enable and have had luck seeing the actual value change from whatever is was to 0 to indicate enabled IN THE REGISTRY. Problem is when I open IE settings none of the radio buttons have changed to indicate this change. Does anyone know where I went wrong? Here is part of the script I am using:

Const HKEY_CURRENT_USER = &H80000001

strComputer = "."

Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")

strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2"
strValueName = "1001"
dwValue = 0

objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue

Next I just copy and paste from strKeyPath to objRegistry and change the strValueName to the next setting I want to change... Any help is appreciated!