Look for domain controller using javascript

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?
2 answers Last reply
More about look domain controller javascript
  1. <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
  2. Hi,

    Thanks for this I'll give this a crack. Never written a javascript before though...
Ask a new question

Read More

Internet Explorer Javascript Domain Controller Windows 7