Re: How can I obtain the MAC address of a remote machine via a WMI Script?



"RD" <rdelaugerre@xxxxxxxxx> wrote in message
news:76faf4d4-d409-4f98-bc21-a9ef3c8ad05d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
It's a simple WQL request (SQL like for WMI) to list all instances of
Win32_NetworkAdapter class
then, for each of the results, it prints the MACAddress property.
So it's all WMI, works on any remote computer provided you have the
proper user rights (that is admin) on the account that runs the
script.
If you want to logon as another user, google or msdn search for
Management.ManagementScope (I use that in VB.NET)

It definitely worked. It picked up the remote MAC address of the machine
for which I intended it. It also picked up some other MAC addresses as well
which was kind of weird.

What I did was alter line 1 of the script changing it to:
strComputer = "DC1"

which resulted in it displaying the MAC of machine DC1 (DC1 has only 1 NIC,
no other NICs present at all). However the script also displayed a MAC of
50:50:54:50:30:30. Kinda weird, huh?


.



Relevant Pages

  • Re: How can I obtain the MAC address of a remote machine via a WMI Script?
    ... then, for each of the results, it prints the MACAddress property. ... works on any remote computer provided you have the ... It picked up the remote MAC address of the machine ... no other NICs present at all). ...
    (microsoft.public.win32.programmer.wmi)
  • Re: convert FAT32 to NTFS problem?
    ... sDiskLetter = obiLogicalDisk.DeviceID ... >>> Your script is always launching convert.exe on the local machine. ... >>> script connects to the remote computer using WMI, and gets the drives of the ...
    (microsoft.public.scripting.vbscript)
  • Re: What permission(s) am I missing?
    ... of without success. ... > For the most part it doesn't matter which OS you're running the script on, ... > changed the permissions from the defaults on the remote computer. ... >> Administrators group missing and where can I change it? ...
    (microsoft.public.scripting.vbscript)
  • Re: How to tell IP address of remote machine?
    ... If your mail is going through the ISPs mail server, ... you could note http connections to a url at your machine that isn't ... call ipget.pl from your remote computer. ... # ipget.pl- the script that retrieves your IP for you. ...
    (Fedora)
  • Re: EvfMgr C: -commit followed by Power Down gives lost changes
    ... > a little utility on this PC is started from a remote computer. ... > a script and connects to an external WebServer to fetch the new software. ... > This might include running a script that modifies Registry, deletes files, ... ... They turn off the power. ...
    (microsoft.public.windowsxp.embedded)

Quantcast