Unable to create registry key for Allow active content to run in files on my computer* via .vbs or even .bat
Users are trying to access a page that requires them to install ActiveX Controls (for Siebel) but they are not able to do so because they belong to the Users group ( Windows XP ). As a solution we have the users run a .vbs script as Administrator ( Script Compiled into an .exe ) where it opens an Internet Explorer window that calls two .cab files.
This method works but one of the issues we are encountering here is the amount of calls we are getting because users apparently suffer from yellow blindness and can't click on the yellow prompt even with instructions provided in the same page.
I was able to replicate this procedure silently or in the background through the modification of the Administrator's HKCU prior to launching the Internet Explorer window so there are no prompts that stops the ActiveX Controls from installing. I tested my script and it runs fine on workstations where the Administrator's HKCU path that takes care of the Allow active content to run in files on my computer* already exist. In workstations where the this path ( [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN] ) does not exist, my scripts fails because the registry file is not creating the path and the key that takes care of this option.
Changing the HKLM registry works because this path already exist, but I am thinking this will require a restart in order for the path to appear in the Administrator's HKCU. I tested my method of creating any registry path and it works. Somehow creating this specific path to the Administrator's HKCU is not working unless it already exists.
This path gets created once you go to Internet Options > Advanced ( Tab ) > Security > Allow active content to run in files on My Computer*. As additional information, we are using IE7.