If you want to give the system a new name, click on Change settings and then click on the Change button.
Click on the Windows
Start Button at the lower, left-hand corner of the
screen or hit the Windows key then in the "Ask me anything" field type
cmd
and hit the Enter key to obtain a command prompt.
Type hostname and hit Enter.
C:\Users\nell>hostname Enda C:\Users\nell>
In the example above, the system's name is Enda
.
Alternatively, you can obtain the computer's name through the omputername environment variable.
C:\Users\nell>echo %computername% ENDA C:\Users\nell>
An another alternative is to use the
Windows Management Instrumentation Command-line (WMIC).
If you issue the command wmic path win32_computersystem get
/format:list
, you will get a lot of other information about the
system, which will include the system's name. You can restrict the
information displayed to just the computer name with the command
wmic path win32_computersystem get name
.
C:\Users\nell>wmic path win32_computersystem get name Name ENDA C:\Users\nell>
You can also use the hostname
command with
Windows PowerShell, rather than the command prompt. You can open a
PowerShell window by typing powershell
in the "Ask me anything"
field, rather than cmd
, and then hit Enter with
"Windows PowerShell" selected.
Windows PowerShell Copyright (C) 2015 Microsoft Corporation. All rights reserved. PS C:\Users\nell> hostname Enda PS C:\Users\nell>