Answer

问题及解答

Windows下查看硬盘的型号、序列号、大小和mediaType

Posted by haifeng on 2020-09-26 11:32:08 last update 2020-09-26 15:53:08 | Edit | Answers (0)

 

D:\>wmic diskdrive get model, serialNumber, size, mediaType
MediaType              Model                           SerialNumber          Size
Fixed hard disk media  WDC ***  ****_****_****_****.  **************

https://www.windowscentral.com/how-check-hard-drive-model-serial-number-firmware-version-and-more-using-command-prompt


或者

C:\Users\haife>wmic path win32_physicalmedia get SerialNumber
SerialNumber
****_****_****_****.

 

https://stackoverflow.com/questions/24049367/how-do-i-get-the-disk-drive-serial-number-in-c-c