Berto
I AM USING WINDOWS VISTA ULTIMATE
Answer
One note: net send on xp service pack 2 has been disabled by default, so you will need to enable the messenger service on both computers in order to use it.
Do this by clicking run, type services.msc and hit enter. scroll down to "messenger", double click it and change the startup type to auto. Also, be sure to click start if you want to use it right away, otherwise it will only start on the next boot up.
Also note, Messenger (in services) is NOT related to MSN messenger or Windows messenger, but linked only to the net send commands.
**UPDATE**
The above info is valid for xp only. Vista has made net send obsolete, and replaced it with the msg command.
eg. msg COMPUTERNAME type message here
One note: net send on xp service pack 2 has been disabled by default, so you will need to enable the messenger service on both computers in order to use it.
Do this by clicking run, type services.msc and hit enter. scroll down to "messenger", double click it and change the startup type to auto. Also, be sure to click start if you want to use it right away, otherwise it will only start on the next boot up.
Also note, Messenger (in services) is NOT related to MSN messenger or Windows messenger, but linked only to the net send commands.
**UPDATE**
The above info is valid for xp only. Vista has made net send obsolete, and replaced it with the msg command.
eg. msg COMPUTERNAME type message here
how do i get a remote computers remark with thier ip in command prompt?
b
i work on a network with over 600 computers. we bar-code all our machines. so our naming convention is as follows : computer description/remark = R0001111-S computers name= abc-B222-ab
what i need to do is find out the computers remark or bar-code number using only their ip address in command prompt thank you for all your help
B
The inventory system that we use is Maximo. but i do not control that system. what i need is something my computer maintenance team can use without having access to the servers.
i would like to create a data base but we use dhcp not static ip addresses so i need something that my team with local admin privileges can use to find out all information about a target computer just with using an ip address. thank you for your comments they are most helpful!
and third party software is out of the question this is a secure network.
and the os on all machines on the domain is windows 7 enterprise x64
Answer
To get just the name you can use nslookup followed by the ip address. For example: nslookup 192.168.1.56
This will return something like this:
Server: dnsserver.dnsname.com
Address: 192.168.1.1
Name: pcname.domainname.com
Address: 192.168.1.56
Getting the description will be more challenging. And will also depend on if you want the AD description or the description on the local box. They are not the same as one might expect.
If all these PCs are joined to a Windows domain AD description is fairly easy to get. You can do this with a dsquey piped to a dsget command to get the AD description.
Something like this: dsquery computer OU=Sales,DC=Contoso,DC=Com
| dsget -desc
You could also use the Active Directory Users and Computers snap-in to get the same info in the GUI,
If your PCs are not part of a domain then maybe a wmic command that will do it.
For example wmic bios get serialnumber "PC Name or IP Add" will get you the serial. Check out wmic and see if it has an option for getting the description.
Another option is PSTools, which is a set of powerful command line tools to do lots of administration tasks. PSTools is recommend by Microsoft and can be downloaded from technet--so it's not really third party and not a security risk in the right hands.
The WMI command in a VB script is also an option.
You'll need to test commands and some combinations of switches and pipes to return the info you need but it is totally do-able.
And one more option, you could just open "Network" in Explorer and it will show all the PCs by name and local (not AD) description in the GUI , , ,
To get just the name you can use nslookup followed by the ip address. For example: nslookup 192.168.1.56
This will return something like this:
Server: dnsserver.dnsname.com
Address: 192.168.1.1
Name: pcname.domainname.com
Address: 192.168.1.56
Getting the description will be more challenging. And will also depend on if you want the AD description or the description on the local box. They are not the same as one might expect.
If all these PCs are joined to a Windows domain AD description is fairly easy to get. You can do this with a dsquey piped to a dsget command to get the AD description.
Something like this: dsquery computer OU=Sales,DC=Contoso,DC=Com
| dsget -desc
You could also use the Active Directory Users and Computers snap-in to get the same info in the GUI,
If your PCs are not part of a domain then maybe a wmic command that will do it.
For example wmic bios get serialnumber "PC Name or IP Add" will get you the serial. Check out wmic and see if it has an option for getting the description.
Another option is PSTools, which is a set of powerful command line tools to do lots of administration tasks. PSTools is recommend by Microsoft and can be downloaded from technet--so it's not really third party and not a security risk in the right hands.
The WMI command in a VB script is also an option.
You'll need to test commands and some combinations of switches and pipes to return the info you need but it is totally do-able.
And one more option, you could just open "Network" in Explorer and it will show all the PCs by name and local (not AD) description in the GUI , , ,
Powered by Yahoo! Answers






Comments :
Post a Comment