第一步:

select * from Win32_DiskDrive

第二步:
Associators of {Win32_DiskDrive.DeviceID='\\.\PHYSICALDRIVE0'} where AssocClass=Win32_DiskDriveToDiskPartition

第三步:
Associators of {Win32_DiskPartition.DeviceID='Disk #0, Partition #1'} where AssocClass=Win32_LogicalDiskToPartition

总结自MSDN: https://docs.microsoft.com/zh-cn/windows/win32/cimwin32prov/win32-logicaldisktopartition?redirectedfrom=MSDN

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-15
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案