Home > Common Problem > body text

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

小老鼠
Release: 2024-03-08 10:05:24
Original
1562 people have browsed it

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
    Copy after login
  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
    Copy after login
  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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template