How to find the Computer Name from Command line in Windows 10 ?

You can find the computer name of the Windows 10 machine machine using the hostname command. The hostname command prints the NetBios name of the PC instead of the full DNS name.

How to find the Computer Name from Commandline in Windows 10 ?

Below is the hostname command entered in the Windows 10 command prompt to display my laptop name.

C:\Users\senthil>hostname
senthil-lt 
C:\Users\senthil> 


Additionally , you can also use wmic command to find the computer name.

C:\Users\senthil>wmic computersystem  get name
Name
SENTHIL-LT

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...