Create Registry Key (and Subkeys)?
I am trying to create a registry key and subkey for enabling IE 11 enterprise mode for all users on a machine. This is what I am using for my VBScript currently and it is failing horribly (does not add the key). I could use some assistance in getting this corrected. Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set ObjRegistry = _ GetObject("winmgmts:{impersonationLevel = impersonate}! \\" & _ strComputer & "\root\default:StdRegProv") strPath = strKeyPath & "\" & strSubPath strKeyPath = "Software\Policies\Microsoft" strSubPath = "Internet Explorer\Main\EnterpriseMode" strName =