Hi,
I need to write a script to extract the Computer Name, Ip Address and Mac Address from the OS and present the info on a window for reference... ANy ideas?
Printable View
Hi,
I need to write a script to extract the Computer Name, Ip Address and Mac Address from the OS and present the info on a window for reference... ANy ideas?
Yeah go to run. Type cmd. Type ipconfig /all.
Or are you trying to do it remotely?
Kind of a broad, general kind of question, don't you think? Can you be a bit more specific?
If your planning to run it on a Windows platform then i'd recommend VB (visual basic) . Just create a WinSock component and get the information you need from that and display it with labels on a simple form.
Hope this helped
Good Luck
systeminfo command from xp gives all that info except for the mac addy
you have not given info about the os or the scripting lan but the following would work on windows if you can use os commands:Quote:
Hi,
I need to write a script to extract the Computer Name, Ip Address and Mac Address from the OS and present the info on a window for reference... ANy ideas?
ipconfig/all>c:\info.txt&c:\info.txt
Yeah, you have provided too little information. Also (aside from what has been said) go to start>run and type winipcfg. That might help a little, but you need to be more specific on what you're trying to accomplish or what you need help with.
i think you should start out by specifying the question better and maby you should start by using RUN and then cmd and if u know what you are doing half way i think it should work form there
Actually this only works in Windows xp Pro not the home versionQuote:
Originally posted here by Darksnake
systeminfo command from xp gives all that info except for the mac addy
Hi all,
Many thanks for all your replies.
Sorry for not being specific.
:)
I need to write up a script to show the required computer information for computer users in my company.
I am running an internal IT helpdesk and to troubleshoot problems, and so i need the information from users.
It does not look good when we keep asking users to do ipconfig/all and things like that....
The OS used is WIN XP.
For scripting wise, any recommendations on how to go about it?
Thanks again/
;)
Good thing it's on a LAN because AFAIK you can't get the MAC addy over the Internet [although I'm still looking into how it would be possible to do it :)]. If you're good at code why not inspect the nmap soft at www.insecure.org and get ideas from there? You could use that program but I think it's a bit more than what you need and it wouldn't be the most effective thing.
On the other hand... since you said you need to extract the IP too, I'm wondering how you'd go about knowing which computer you want the info from? I guess you need a client/server type app with the clients running on the users' computers... and have them double click the prog name and that would send the info to your computer. Me not being a guru when it comes to XP scripting, I can only say... wouldn't something along the lines of
ipconfig/all > c:\info.txt [as said before]
net send IP info.txt
work? Or maybe
ipconfig/all | net send IP
but I'm not sure how [if?] piping works in XP. Also not sure about net send syntax, that's easy to find from the documentation you have on your computer.
Quote:
HKLM\Software\Microsoft\Windows\Currentversion\RegisteredOwner
HKLM\Software\Microsoft\Windows\CurrentVersion\Registeredorganization
if you can -- ping the ip address and then look in the arp tables of your computer and it should show the mac addressQuote:
Originally posted here by hypronix
[B]Good thing it's on a LAN because AFAIK you can't get the MAC addy over the Internet [although I'm still looking into how it would be possible to do it :)].
as far as the original question goes, just use angry IP scanner (available for free at www.downloads.com) and you can specify what to get (user-name, dns name, ip address, mac address) -- however, it works correctly ONLY in windows environments... i have had some problems with it when it is trying to collect info about a Mac or a Unix/Linux box
hope this helps :)
Can some one guide me on the codes/scripts to use to get the info?
Creat a file named whatever.bat or whatever.cmd
ipconfig /all > .\ipconfig.txt
start notepad .\ipconfig.txt
exit
You could also have it create the file in a shared folder and modify it so it doesn't pop notepad open. that you have access to from one centralised system, and have it run with the start up scripts, or on a schedule, or whatever. Adjust season to taste and cook until done.