- Back to Home »
- vbscript »
- vbscript code to enable download_Unsigned_ActiveX_component in ie settings
Posted by :
Sudhir Chekuri
Thursday, 26 September 2013
Copy the below code in a text document ie., in notepad.
go through the code and replace the urls with your custom urls.
save it with .vbs extension.
double click on that vbs file to execute it to modify ie settings
vbscript code to enable download_Unsigned_ActiveX_component in ie settings
HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1"
objReg.CreateKey HKEY_CURRENT_USER, strKeyPath
ValueName = "1004"
dwValue = 0
objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, ValueName, dwValue
go through the code and replace the urls with your custom urls.
save it with .vbs extension.
double click on that vbs file to execute it to modify ie settings
vbscript code to enable download_Unsigned_ActiveX_component in ie settings
HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1"
objReg.CreateKey HKEY_CURRENT_USER, strKeyPath
ValueName = "1004"
dwValue = 0
objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, ValueName, dwValue