locked
ActiveX in autoproxy script in XP SP2. RRS feed

  • Question

  • We are using a javascript for our Autoproxy, but because of a legacy
    problem with how our domains were configured, we need to determine the
    Active Directory Domain of machines to know which proxies to send them
    to.  The following code worked great in XP SP1, but we are testing in
    XP SP2, and it's failing.  This would run in the "Local Intranet"
    security zone in IE, where all ActiveX is allowed and enabled.  Anyone
    have any ideas on how to do this differently, or somewhere in
    configuration to re-enable this type of object creation?  Is there anything in the XP SP2 architecture that allows ActiveX to be allowed via a classID or some other method?

     

    bKey = GetComputerDomain();
    if (shExpMatch(bKey,"MTESTNET"))
         return FindProxyForURLMTESTNET(url, host);

    function GetComputerDomain()
    {
        Sh = new ActiveXObject("WScript.Shell");
        bKey = (Sh.RegRead
    ("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows
    NT\\CurrentVersion\\Winlogon\\DefaultDomainName"));
        return bKey;

    Tuesday, April 11, 2006 7:37 PM

All replies

  • I'm afraid you have posted this in the wrong group, so help might not be delivered
    Friday, April 14, 2006 9:01 AM