Jeffro1182
Technical User
Hello All,
I am *very* new to VBScripting and I am attempting to write a script that automates the changing of specific Internet Explorer 6 settings. Currently I just have a series of commands (like the one I have included below) that just goes through and sets the value.
I'm curious, is there a better/safer way to make these changes? Perhaps checking the value of the key first and leaving it alone if it already set correctly? Warning if the key doesn't exist, etc..?
If anyone would be willing to provide me with some example/idea code I would be extremely grateful.
jeff
I am *very* new to VBScripting and I am attempting to write a script that automates the changing of specific Internet Explorer 6 settings. Currently I just have a series of commands (like the one I have included below) that just goes through and sets the value.
I'm curious, is there a better/safer way to make these changes? Perhaps checking the value of the key first and leaving it alone if it already set correctly? Warning if the key doesn't exist, etc..?
If anyone would be willing to provide me with some example/idea code I would be extremely grateful.
jeff
Code:
' Disable caching of SSL pages
HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings"
objReg.CreateKey HKEY_CURRENT_USER, strKeyPath
ValueName = "DisableCachingOfSSLPages"
dwValue = 0
objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, ValueName, dwValue