Has anyone had occasion to query all machines on a domain and return the
machine name and MAC address for each ? I'm interested in enabling
Wake-on-lan functionality and need to build a list of all of the address and
machine locations in order to progress.
Any assistance would be greatly appreciated.
TD
for each possible ip on subnet
shell ping ip
shell arp -a >> output file
parse output file
next ip
"Tim Davidge" <tdavidge@no_spam.hotmail.com> wrote in message
news:uGSUaGUK...@TK2MSFTNGP11.phx.gbl...
for each obj in compEnum
wscript.echo obj.ds_dn
' as for the MAC Address per computer See the Win32_NetAdapter or the
Win32_NetworkAdapterConfiguration class
next
--
[MS] Scott McNairy
WMI Test Engineer
This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Tim Davidge" <tdavidge@no_spam.hotmail.com> wrote in message
news:uGSUaGUK...@TK2MSFTNGP11.phx.gbl...