Problem with Java Plug-in in IE

HI

I try to use a Visual Basic script to disable JRE 1.5.0_09 from Internet Explorer ando it doesn't work. I need to do this because is a script to run in active directory using SMS. This is the code:

' Asigna constantes

Const HKEY_CURRENT_USER = &H80000001

Const HKEY_LOCAL_MACHINE = &H80000002

' Vars

strComputer = "."

strKeyPath = "SOFTWARE\Microsoft\Internet Explorer\AdvancedOptions\JAVA_SUN\SELECT"

strKeyPath1 = "SOFTWARE\Javasoft\Java Plug-in\1.5.0_09"

dwValue = 0

' Crea objeto

Set objRegistry=GetObject("winmgmts:\\" & _

strComputer & "\root\default:StdRegProv")

' Escribe el registro

strValueName = "CheckedValue"

objRegistry.SetDWordValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue

strValueName2 = "DefaultValue"

objRegistry.SetDWordValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName2,dwValue

strValueName3 = "UncheckedValue"

objRegistry.SetDWordValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName3,dwValue

strValueName1 = "UseJava2IExplorer"

objRegistry.SetDWordValue HKEY_LOCAL_MACHINE,strKeyPath1,strValueName1,dwValue

Someone help me, please!

[1222 byte] By [orlandosa] at [2007-10-3 8:26:36]
# 1
Do you realize you are posting VB code on a Java board?
zadoka at 2007-7-15 3:33:00 > top of Java-index,Desktop,Runtime Environment...
# 2
Yes, but i have no other choice. Sorry
orlandosa at 2007-7-15 3:33:00 > top of Java-index,Desktop,Runtime Environment...
# 3
> Yes, but i have no other choice. SorrySomeone might be able to help you, I just wanted to make sure you knew that the chances where slim. I didn't know if you have been up for 3 nights on the problem and might not be thinking clearly.
zadoka at 2007-7-15 3:33:00 > top of Java-index,Desktop,Runtime Environment...
# 4

Yes, I know that this is a Java forum but, who knows, maybe someone have the answer. Someone, maybe know the windows registry and i'm looking in the wrong place. The "put the code" think is just that everybody see where in the registry i try to change this value. The problem is that the change do not afect Internet explorer use JRE.

orlandosa at 2007-7-15 3:33:00 > top of Java-index,Desktop,Runtime Environment...