Sign in with
Sign up | Sign in
Your question

Look for domain controller using javascript

Tags:
  • Internet Explorer
  • Javascript
  • Domain Controller
  • Windows 7
Last response: in Windows 7
Share
September 22, 2011 8:54:10 AM

Hello,
I've written a batch file to run at start up to look for a domain controller to determine whether to use our intranet as the IE home page or external website. This works fine, but I'm wondering whether I can use a pack file instead? Does anyone know a javascript command which looks for a specified domain controller?

More about : domain controller javascript

a b $ Windows 7
September 22, 2011 9:44:16 AM

<script type="text/javascript">
document.write(document.domain);
</script>

From my home domain, returns \\xxxx.dynsdns.org

or for more

http://www.irt.org/script/352.htm
September 22, 2011 11:14:14 AM

Hi,

Thanks for this I'll give this a crack. Never written a javascript before though...
!