There a few ways to get the serial number of a computer:
1. In the case of laptops, you will usually find the serial number on a back-label.
- Windows OEM Product Key Tool. As the name suggests, the tool is designed to find the product embedded right into your BIOS or EFI by your manufacturer, known as OEM license. If you a laptop or desktop with OEM-embedded serial key then this utility is for you. Simply download and run OEMkey.exe and it immediately displays the Windows 10 OEM.
- Whenever you buy a new PC or Laptop, it is important to get the invoice with serial number mentioned in it since S/N is required to be cited while getting the part replacement or claim for warranty. In case the invoice is lost, you can use any of the above methods to find the serial number of PC in windows 10 OS.
2. You can see it in BIOS (basic input/output system)
As soon as you execute the command, the Command Prompt window will show the serial number. To copy the serial number, select the serial key with your mouse and right-click to copy it. Once copied, you can paste it anywhere you want.
3. You can get it from Windows OS.
How to get the Serial Number in Windows:
1. Right-click on the Start button and click on the Windows PowerShell entry (or Command Prompt if you are using an older version of Windows).
The Windows PowerShell window will open:
2. Here you can use two commands. The first one will work both on Command Prompt and on PowerShell:
The second command will work only on PowerShell:
-->Get Serial Number Windows Command Line
The HidD_GetSerialNumberString routine returns the embedded string of a top-level collection that identifies the serial number of the collection's physical device.
Syntax
Parameters
HidDeviceObject
[in]Specifies an open handle to a top-level collection.
Buffer
[out]Pointer to a caller-allocated buffer that the routine uses to return the requested serial number string. The routine returns a NULL-terminated wide character string.
BufferLength
[in]Specifies the length, in bytes, of a caller-allocated buffer provided at Buffer. If the buffer is not large enough to return the entire NULL-terminated embedded string, the routine returns nothing in the buffer. The supplied buffer must be <= 4093 bytes (2^12 – 3).
Return value
HidD_GetSerialNumberString returns TRUE if it successfully returns the entire NULL-terminated embedded string. Otherwise, the routine returns FALSE. Use GetLastError to get extended error information.
Remarks
Only user-mode applications can call HidD_GetSerialNumberString. Kernel-mode drivers can use IOCTL_HID_GET_SERIALNUMBER_STRING.
The maximum possible number of characters in an embedded string is device specific. For USB devices, the maximum string length is 126 wide characters (not including the terminating NULL character).
Get Serial Number Windows 10 Cmd
If the supplied buffer is not <= 4093 bytes (2^12 – 3), the call may fail (depending on the underlying protocol, HID/Bluetooth/SPI) with error code ERROR_GEN_FAILURE (0x0000001f)
For more information see HID Collections.
Requirements
Minimum supported client | Available in Windows 2000 and later versions of Windows. |
Target Platform | Universal |
Header | hidsdi.h (include Hidsdi.h) |
Library | Hid.lib |
DLL | Hid.dll |