Search notes:

HOSTNAME.EXE

HOSTNAME.EXE prints the name of the current host to stdout.

See also

The environment variable COMPUTERNAME
Changing the computername with WMIC.exe

Index