Windows XP and Windows Server 2003:
  1. Click Start, Run
  2. In the Run box, type "CMD" and press enter
  3. In the Command prompt that opens, type "hostname" and press enter. The computer name displays on the next line.
Windows Vista, Windows 7, Windows Server 2008, and Windows Server 2008R2:
  1. Go to the Start menu and put the cursor in the Search box
  2. Type "CMD" and press enter
  3. In the Command prompt that opens, type "hostname" and press enter. The computer name displays on the next line.