P
P
Profi_GMan2018-02-18 11:56:31
cmd/bat
Profi_GMan, 2018-02-18 11:56:31

How to find out by the guid of the section to which letter it is connected?

Good day!
How to find out by the guid of the section to which letter it is connected?
Already searched, nowhere.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2018-02-18
@Profi_GMan

wmic volume get /value
In DeviceID - GUID
In Label - ESP (for ESP partition)
In DriveLetter - drive letter in the format "C:", or empty if the drive is not connected
wmic is a very powerful tool, you can get a lot of information with it about the system. I recommend learning it.
wmic volume get Label,DeviceID,DriveLetter

E
Eugene, 2018-02-18
@yellowmew

powershell
( Get-Volume -UniqueId "\\?\Volume{GUID}\").driveletter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question