J
james.a.owens
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?
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;
}
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?
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;
}