Determining the hostname of a Windows machine

A coworker just asked me this question, and I thought that it would be useful enough to create a quick post. If you’d like to find out the hostname of a Windows workstation/server and only have a drive image available (and don’t want to boot it), you can find the name within the System registry hive in the key named Hostname located here: SYSTEM\CurrentControlSet\Services\Tcpip\Parameters