wmic diskdrive get Name, Manufacturer, Model, InterfaceType, MediaType, SerialNumber
The full list of properties that you can use for the query above is as follows:
?Availability
?BytesPerSector
?Capabilities
?CapabilityDescriptions
?Caption
?CompressionMethod
?ConfigManagerErrorCode
?ConfigManagerUserConfig
?CreationClassName
?DefaultBlockSize
?Description
?DeviceID
?ErrorCleared
?ErrorDescription
?ErrorMethodology
?FirmwareRevision
?Index
?InstallDate
?InterfaceType
?LastErrorCode
?Manufacturer
?MaxBlockSize
?MaxMediaSize
?MediaLoaded
?MediaType
?MinBlockSize
?Model
?Name
?NeedsCleaning
?NumberOfMediaSupported
?Partitions
?PNPDeviceID
?PowerManagementCapabilities
?PowerManagementSupported
?SCSIBus
?SCSILogicalUnit
?SCSIPort
?SCSITargetId
?SectorsPerTrack
?SerialNumber
?Signature
?Size
?Status
?StatusInfo
?SystemCreationClassName
?SystemName
?TotalCylinders
?TotalHeads
?TotalSectors
?TotalTracks
?TracksPerCylinder
原文地址:https://blog.51cto.com/549687/2379265