Locating the Name of Your Computer

In many cases, a computer name is needed to perform in-depth troubleshooting. This document will help you locate your computer name, also known as the "hostname". Each section includes basic and advanced methods of lookup.

Windows XP

  1. Right-click on My Computer from either the Desktop or Start Menu, and choose Properties:

    Properties
  2. Click on the Computer Name tab at the top of the window. Your computer's name is listed next to "Full computer name"

    Computer Name

Windows XP - Command Line Method (Advanced)

  1. Go to Start > Programs > Accessories > Command Prompt
  2. In the prompt, type the word 'hostname' (without quotes) and press enter
  3. Your computer's name is the output of this command:

    Windows Command Prompt

Windows Vista/7 - Graphical Method

  1. From the Start menu, right-click on Computer and choose Properties from the menu:

    Properties
  2. The computer name will be listed beneath "Computer name, domain, and workgroup settings"

    Hostname

Windows Vista/7 - Command Line Method (Advanced)

  1. Go to Start > Programs > Accessories > Command Prompt
  2. In the prompt, type the word 'hostname' (without quotes) and press enter
  3. Your computer's name is the output of this command:

    Windows Command Prompt

Windows 8 - Graphical Method

  1. Move your mouse cursor to the lower left corner of the screen until you see a small image appear. If you are currently viewing the Desktop, this image should be a shortcut to the Start screen, and vice-versa:

    Start Button
  2. Right-click on this box to reveal the Windows Quick Access Menu. Click on System in this menu.

    Quick Access Menu
  3. The computer name will be listed beneath "Computer name, domain, and workgroup settings"

    Hostname

Windows 8 - Command Line Method (Advanced)

  1. Move your mouse cursor to the lower left corner of the screen until you see a small image appear. If you are currently viewing the Desktop, this image should be a shortcut to the Start screen, and vice-versa:

    Start Button
  2. Right-click on this box to reveal the Windows Quick Access Menu. Click on Command Prompt in this menu.

    Quick Access Menu
  3. In the prompt, type the word 'hostname' without quotes and hit enter
  4. Your computer's name is the output of this command:

    Windows Command Prompt

Windows 10 - Graphical Method

    1. Click on the Start Menu (Windows Icon) in the lower left hand corner of your screen.
startWin10.JPG
    1. Right-click on this box to reveal the Windows Quick Access Menu. Click into the search box at the bottom and type in Control Panel, then click on the top result.
ControlPanel.jpg
    1. Open System and Security.
SystemSecurity.jpg
    1. Select System.
System.jpg
    1. The full computer name will be listed under the "Computer name, domain, and workgroup settings" section.
ComputerName.jpg

Windows 10 - Command Line Method (Advanced)

    1. Move your cursor to the lower left corner of the screen until you see a small image appear. If you are currently viewing the Desktop, this image should be a shortcut to the Start screen.
startWin10.JPG
    1. Right-click this box to reveal the Windows Quick Access Menu. Type Control Panel in the search box and select Control Panel in the results.
    2. Input System in the top-right search box and then click on See the name of this computer.
NameofcomputerWin10.JPG
    1. View the computer name or full computer name under Computer name, domain, and workgroup settings.
computernamewin10.JPG

Mac OS X - Graphical Method

  1. On OS X machines, go to the Apple menu > System Preferences
  2. Go to the Sharing preference pane:

    System Preferences
  3. Your hostname is in the "Computer Name" field:

    Computer Name

Mac OS X - Command Line Method (Advanced)

  1. With Finder focused, go to the Go menu > Utilities > Terminal
  2. In the terminal, type the word 'hostname' without quotes and hit enter
  3. Your hostname is the output of the hostname command:

    Terminal Window



Keywords:hostname computer name windows mac win7 win8 osx 10.6 10.7 10.8 snow leopard mountain lion   Doc ID:28127
Owner:Help Desk KB Team .Group:DoIT Help Desk
Created:2013-01-15 13:02 CDTUpdated:2022-09-25 16:29 CDT
Sites:Advanced Desktop Support, DoIT Departmental Support, DoIT Help Desk, DoIT Staff, Help Desk Level 2, University of Illinois System
Feedback:  19   20