≡ Menu

List local drives from command line

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:\>
8 comments… add one
  • Anonymous

    It shows network mapped drives too

  • Techblogger

    To get only local drives the below command should work.

    wmic logicaldisk get description,name | findstr /C:"Local"

  • Pankaj Khurana

    Thanks for the info. I was looking for this from couple of days . thanks

    Could u help me showing some more hidden commands in windows on my mail

    I will be very much thankful to you

  • praveen

    It asks for administrative privileges

  • Vijay S

    thank you so much

  • yosuhara

    run diskpart, then run list volume. much easier

  • manoj

    good one

  • Magnus

    # echo list disk | diskpart
    admin required

Leave a Comment