Frequently Asked Question

How to find the serial number or hostname of my computer?
Last Updated 10 months ago

For Windows:

Using Command Prompt:

  • Press Windows + R to open the Run dialog.
  • Type cmd and press Enter to open the Command Prompt.
  • In the Command Prompt window, type wmic bios get serialnumber and press Enter. This command will display the serial number of the PC's BIOS.
  • To find the hostname, type hostname in the Command Prompt and press Enter. This command will display the hostname of the PC.

Using PowerShell:

  • Press Windows + X and select "Windows PowerShell" from the menu (or "Windows PowerShell (Admin)" for administrative privileges).
  • In the PowerShell window, type Get-WmiObject Win32_BIOS | Select-Object SerialNumber and press Enter. This command will display the serial number of the PC's BIOS.
  • To find the hostname, type hostname in the PowerShell window and press Enter. This command will display the hostname of the PC.

For macOS:

Using Terminal:

  • Open Finder and navigate to Applications > Utilities > Terminal.
  • In the Terminal window, type system_profiler SPHardwareDataType | grep Serial and press Enter. This command will display the serial number of the Mac.
  • To find the hostname, type hostname in the Terminal window and press Enter.
  • This command will display the hostname of the Mac.

For Linux:

Using Terminal:

  • Open the Terminal application.
  • To find the serial number, type sudo dmidecode -s system-serial-number and press Enter. You may need to enter your password. This command will display the serial number of the PC.
  • To find the hostname, type hostname in the Terminal and press Enter.
  • This command will display the hostname of the PC.

These steps should help you obtain the serial number or hostname of a PC running Windows, macOS, or Linux.

Please Wait!

Please wait... it will take a second!