Microsoft DOS hostname command
Display the hostname of the machine the command is being run on.
The hostname command is an external command and is available in the below Microsoft operating systems.
sethostname: Use the Network Control Panel Applet to set hostname.
hostname -s is not supported.
Running the command would display the hostname for the computer.