Home >Common Problem >How to get the serial number of a physical hard disk under Windows
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.
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:
wmic diskdrive get SerialNumber
The steps to use PowerShell to obtain the physical hard disk serial number are as follows:
Get-WmiObject win32_physicalmedia | select SerialNumber
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!