Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can you get the terminal service client machine name from javascript?
    primarykey
    data
    text
    <p>Is it possible to get the machine name, or IP, or MAC address (basically client network information) from javascript running Internet Explorer?</p> <p>I found the following code that seems to accomplish this:</p> <pre><code>function Button1_onclick() { var locator = new ActiveXObject("WbemScripting.SWbemLocator"); var service = locator.ConnectServer("."); var properties = service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration"); var e = new Enumerator (properties); document.write("&lt;table border=1&gt;"); dispHeading(); for (;!e.atEnd();e.moveNext ()) { var p = e.item (); document.write("&lt;tr&gt;"); document.write("&lt;td&gt;" + p.Caption + "&lt;/td&gt;"); document.write("&lt;td&gt;" + p.IPFilterSecurityEnabled + "&lt;/td&gt;"); document.write("&lt;td&gt;" + p.IPPortSecurityEnabled + "&lt;/td&gt;"); document.write("&lt;td&gt;" + p.IPXAddress + "&lt;/td&gt;"); document.write("&lt;td&gt;" + p.IPXEnabled + "&lt;/td&gt;"); document.write("&lt;td&gt;" + p.IPXNetworkNumber + "&lt;/td&gt;"); document.write("&lt;td&gt;" + p.MACAddress + "&lt;/td&gt;"); document.write("&lt;td&gt;" + p.WINSPrimaryServer + "&lt;/td&gt;"); document.write("&lt;td&gt;" + p.WINSSecondaryServer + "&lt;/td&gt;"); document.write("&lt;/tr&gt;"); } document.write("&lt;/table&gt;"); </code></pre> <p>}</p> <p>So it's using an ActiveX Object that seems to be installed with the OS to accomplish this. Is something similar like this possible to do from a terminal service session? To get the terminal service client network information? (Not the terminal server network information which is what the above code would do when run from a terminal service session).</p> <p>I'm thinking maybe there is another Active X object available to accomplish this?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload