Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the machine name from command.com

Status
Not open for further replies.

it2hill

IS-IT--Management
Sep 5, 2002
28
US
Good day,

I need to be able to get the machine name from a command line. I found a post from the NT forum. It recomended ipconfig. However it does not give me the machine name as it is shown when I get the prop's of my computer from desktop.

Output of IP config (numbers changed)

C:\>ipconfig

Windows 2000 IP Configuration

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : mycompany.com
IP Address. . . . . . . . . . . . : 111.11.111.111
Subnet Mask . . . . . . . . . . . : 111.111.111.1
Default Gateway . . . . . . . . . : 111.11.111.1

Value when I RC on my computer
Full Computer Name: my_name.mycompany.com

How can I capture my_name.mycompany.com

Thanks,

Shane
 
Just add /all after the ipconfig command so it would look like this: c:\ipconfig /all
HTH
 
PFM... pure freakin magic. Thanks so much. This is one of the best board I have every used.

Shane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top