Unlock For Us

Command prompt syntax to show Computer Name

Computers on a network have a unique names so they can be recognize, identify and communicate with each other. It is a label given to a device connected to a computer network and that is used to name a device in various forms of electronic communication.

Here’s how to determine and find the computer name using the command prompt:

echo %computername%

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>echo %computername%
HP-PC

C:\Windows\system32>

ipconfig /all

The command displays full configuration information.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : hp-PC
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

hostname

The command directly prints the name of the current host

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>hostname
hp-PC

C:\Windows\system32>

For easy recognizable names, it’s best to keep the computer name fifteen character or less. It is also recommend to use only internet standard  characters.

That’s it! Thanks for reading the quick tip!

0 Comments:

 

© Unlock For Us @2024| Blogger| License Agreement