kellygirl01
MIS
Hi Everyone,
I'm trying to write a VBS script to change the value of [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "allowWindowReuse" from 1 to 0.
I tried the following script but it doesn't work.
HELP!
HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strKeyPath = "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main"
strValueName = "AllowWindowReuse"
dwValue = 0
oReg.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
I'm trying to write a VBS script to change the value of [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "allowWindowReuse" from 1 to 0.
I tried the following script but it doesn't work.
HELP!
HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strKeyPath = "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main"
strValueName = "AllowWindowReuse"
dwValue = 0
oReg.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue