Home >Common Problem >How to get the serial number of a physical hard disk under Windows

How to get the serial number of a physical hard disk under Windows

小老鼠
小老鼠Original
2024-03-08 10:05:241638browse

Can be obtained using the command line tool WMIC or PowerShell. Method 1: Use the WMIC command to obtain the steps: 1. Open the command prompt; 2. Enter the corresponding command and press the Enter key; 3. Wait for the command to be executed, and the serial number of the physical hard disk will be displayed. Method 2: Use PowerShell to obtain the steps: 1. Open the PowerShell command line interface, 2. Enter the corresponding command and press the Enter key; 3. Wait for the command to be executed, and the serial number of the physical hard disk will be displayed.

How to get the serial number of a physical hard disk under Windows

To obtain the serial number of a physical hard disk under Windows, you can use the command line tool WMIC or PowerShell.

The steps to use the WMIC command to obtain the physical hard disk serial number are as follows:

  1. Open the command prompt (CMD).
  2. Enter the following command and press the Enter key:
    wmic diskdrive get SerialNumber
  3. After the command is completed, the serial number of the physical hard disk will be displayed.

The steps to use PowerShell to obtain the physical hard disk serial number are as follows:

  1. Open the PowerShell command line interface.
  2. Enter the following command and press the Enter key:
    Get-WmiObject win32_physicalmedia | select SerialNumber
  3. After the command is completed, the serial number of the physical hard disk will be displayed.

Note: The above method obtains the serial number of the physical hard disk, not the serial number of the logical hard disk (such as partition).

The above is the detailed content of How to get the serial number of a physical hard disk under Windows. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn