We can run the below command from windows command prompt to get the list of local drives.
wmic logicaldisk get description,name | findstr /C:”Local”
We can find the list of drives using fsutil command also but this one shows mapped drives also.
fsutil fsinfo drives
Example:
D:\>fsutil fsinfo drives
Drives: C:\ D:\ Z:\
D:\>
{ 2 comments… read them below or add one }
It shows network mapped drives too
To get only local drives the below command should work.
wmic logicaldisk get description,name | findstr /C:"Local"