MS-DOS and Windows command line hostname command
Updated: 12/30/2021 by Computer Hope
The hostname command displays the hostname of the machine that is running it.
Hostname is an external command and is available for the following Microsoft operating systems as hostname.exe.
Display the hostname for the computer.
Display a help message.