如何获取不同硬盘分区的GUID?

use*_*878 5 powershell hard-drive command-line partitioning bcdedit

我尝试使用 BCDEDIT 和 DISKPART,但这些工具给我的 ID 不是 GUID 注意:我正在 Windows 7 中进行测试

Kar*_*ran 1

查看mountvol命令的输出:

\n\n
\n

VolumeName:\xc2\xa0指定作为安装点目标的卷名称。卷名称的格式为\xc2\xa0\\?\\Volume{GUID}\\,其中 {GUID} 是全局唯一标识符 (GUID)(例如,
\n \\?\\Volume{2eca078d- 5cbc-43d3-aff8-7e8511f60d0e})。

\n
\n