Use can use gem macaddr - cross platform MAC address determination. Works for:
* ipconfig /all
To return the first MAC address on the system:
To return an array of all MAC addresses:
$ gem install macaddr
1.9.3-p194 :001 > require 'macaddr'
1.9.3-p194 :005 > Mac.address
1.9.3-p194 :003 > Mac.addr.list
=> ["c8:2a:14:16:02:0c", "e0:f8:47:21:1b:08", "02:f8:47:21:1b:08"]
The thing is I want to get the MAC address in the actual window mobile device, not in the desktop environment, so there would be no ifconfig or ipconfig on the device.
In that case address this question to rhodes group.