Re: Getting MAC Address of PC

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Prabhat" <not_a_mail@xxxxxxxxxxx> wrote in message
news:%238CnbaIiGHA.1276@xxxxxxxxxxxxxxxxxxxxxxx
Hi Anthony, Thaks for your reply.

from some website I came to know that I can use like:
var locator = new ActiveXObject("WbemScripting.SWbemLocator");
var service = locator.ConnectServer(".");
var properties = service.ExecQuery("SELECT * FROM
Win32_NetworkAdapterConfiguration");

in Javascript. But this line does not work. I get error "Automation server
can't create object". How can I make this work?

Also can you suggest the installed component method? I understand that the
user will have to allow the code / script to execute. I will instruct this
on webpage.

Yes I am aware that the network adaptor has the address not the PC. So I
may
need the HDD Serial Number too for this.


The HDD Serial number as well as the MAC or instead of? You should also be
aware that a MAC Address can change E.g. the users network adapter has been
replaced.

Why do you need this? It will be difficult to build a component that can
expose this information for you to use without allowing others with
malicious intent to use it also.


Thanks
Prabhat

"Anthony Jones" <Ant@xxxxxxxxxxxxxxxx> wrote in message
news:#IAwDSIiGHA.4040@xxxxxxxxxxxxxxxxxxxxxxx

"Prabhat" <not_a_mail@xxxxxxxxxxx> wrote in message
news:Oq0AH2HiGHA.1324@xxxxxxxxxxxxxxxxxxxxxxx
Hi Friends,

It it possible to get the MAC Address of the client PC using some
Javascript
sent from ASP pages to clients PC? Please advice.

Thanks
Prabhat


No you will need some kind of installed component which will need the
users
agreement to do this.

BTW a PC doesn't have a MAC Address a network adapter does. Have you
considered what should happen if mutliple adapters are installed?







.



Relevant Pages

  • Re: Getting MAC Address of PC
    ... in Javascript. ... No you will need some kind of installed component which will need the ... BTW a PC doesn't have a MAC Address a network adapter does. ...
    (microsoft.public.scripting.jscript)
  • Re: Getting MAC Address of PC
    ... Javascript ... No you will need some kind of installed component which will need the users ... BTW a PC doesn't have a MAC Address a network adapter does. ...
    (microsoft.public.scripting.jscript)
  • Re: Getting MAC Address of PC
    ... BTW a PC doesn't have a MAC Address a network adapter does. ... Can I have javascript to get CPU ID of a user visiting a web page? ...
    (microsoft.public.scripting.jscript)
  • Re: Does Macintosh read uppercase?
    ... form at all, on a Mac, which you and I were both able to do. ... "Jim Carlock" wrote in message ... > If the browser doesn't allow javascript, ... >> through any browser. ...
    (microsoft.public.frontpage.programming)
  • Re: My computer running xp thinks its a MAC
    ... MAC is also a TLA that refers to the ... machine-level address of your network adapter, ... the Ethernet LAN cards, so you know which is which. ... For example, LAN1 may have no firewall, ...
    (microsoft.public.security.virus)