kube Posted July 10, 2008 Posted July 10, 2008 I have this script from work that takes a .txt file with computer names and gets some info such as IP if the host name is correct and who was the last user logged on. Then it outputs a .cvs spreadsheet. I want to make it also get the MAC address of the computer also. I'm kinda of a newbie to autoit scripting. Done some scripting before but was still was not able to get it working correctly. Can someone help me make this work and also explain how they did it. Thanks. PingnFile_New.au3 GetIP.au3
PsaltyDS Posted July 10, 2008 Posted July 10, 2008 I have this script from work that takes a .txt file with computer names and gets some info such as IP if the host name is correct and who was the last user logged on. Then it outputs a .cvs spreadsheet. I want to make it also get the MAC address of the computer also. I'm kinda of a newbie to autoit scripting. Done some scripting before but was still was not able to get it working correctly. Can someone help me make this work and also explain how they did it. Thanks.After you ping an IP address, its MAC address is cached for a short time in the ARP table, which you can view with "ARP -a" for the whole table, or "ARP -a 192.168.1.1" for a specific IP.There may be a way to query the ARP table from WMI, but I never looked into it. muttley Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now