I'm currently working on a project where I (among other things) need to find the MAC address for a remote computer. The problem is that i'm restriced to only accessing the computer throught SQL queries. (so I can't use WMI)
The remote computer is running Windows Server 2000, and Ms SQL server 2000.
I know the IP of the remote computer and I am able to log in with the admin account. How can I get the MAC address(preferably all of them) from the remote computer?
Thankful for answers.
I solved it for my computer
//dont mind the makeQuery and querySrv
This should work for other windows server 2000 servers
Thanks to @morgano for help with the formating and byte/hex converting