1.20 获取"Volume{GUID}" https://scz.617.cn/windows/202204221459.txt A: scz 2022-04-02 diskpart.exe只能获取"Disk ID",无法获取"Volume{GUID}",有些文章瞎特么写, 这俩不是一个东西。有几种办法获取"Volume{GUID}" 1) powershell $ powershell -Command "GWMI -namespace root\cimv2 -class win32_volume | FL -property DriveLetter, DeviceID" ... DriveLetter : X: DeviceID : \\?\Volume{7569e44c-e279-4e1e-9fec-44e04334ba83}\ ... 2) mountvol $ mountvol X:\ /L \\?\Volume{7569e44c-e279-4e1e-9fec-44e04334ba83}\ 假设某"Volume{GUID}"没有分配盘符,可以在diskmgmt.msc中完成,也可命令行完成 $ mountvol X:\ /D 此时仍可在资源管理器中访问该卷,在"Win-R"中输入"Volume{GUID}"回车即可,cmd 中不行。