To find your computer's hostname or username (often required during troubleshooting or by Teramind Support), use the commands below.
Windows
To find the hostname and username on a Windows machine, open the Command Prompt.
1. Type cmd.exe in the Windows Start Menu or Search Bar and press Enter.
2. Once the Command Prompt opens, enter the following commands:
Command | Example Output | Description |
|
| Returns the computer name (hostname) and the username for the currently logged-in account. |
| Returns the User Principal Name (UPN). A UPN is an Active Directory attribute consisting of a username prefix and a DNS domain suffix, joined by the | |
|
| Shows the display name for the user, which may be different from the actual user profile account name. |
macOS
To find the hostname and various computer names on a Mac, open the Terminal application.
1. Click the Launchpad icon in the Dock, type Terminal in the search field, and click the application. (Alternatively, find it in the /Applications/Utilities folder.)
2. Once the Terminal is open, enter the following commands:
Command | Example Output | Description |
|
| Returns the username for the currently logged-in account. |
|
| Returns the computer's network host name. |
|
| Returns results similar to the |
|
| Returns the Local Host Name. This name is used to identify the computer on a local subnet, primarily for Bonjour-aware services on the local network. |
|
| Returns the computer's friendly name. |
