| re: getting a mac address
Not at all, the code as is gets the MAC address of the local NIC's that are
IP enabled, but you can modify the code to query a remote
server/workstation, all you need are appropriate permissions to access the
remote system (just as getmac needs it).
Willy.
"pkaeowic" <pkaeowic@discussions.microsoft.com> wrote in message
news:A379EEF7-1FC4-4D1D-8113-B15A24A8D2F7@microsoft.com...
| Scott's code looks promising...
|
| But keep in mind that you will only be able to get the MAC address of
| computers on the local network since that code looks like it's using the
ARP
| cache on the local machine or where ever the code is running.
|
| As an example, you can not get the MAC address of a computer if you have
to
| go through a router.
|
| If you're looking to get a MAC address of Windows PCs and you have the
| username and password, you can check out the getmac command in the command
| prompt. This command will be able to get the MAC address of computers
across
| routers since it doesn't use the ARP cache. It probably does a remote
| procedure call to the Windows PC.
|
| -Pat |