List all devices, partitions and volumes in Powershell

后端 未结 9 832
时光取名叫无心
时光取名叫无心 2021-01-30 19:53

I have multiple volumes (as nearly everybody nowadays): on Windows they end up specified as C:, D: and so on. How do I list these all like on a Unix machine with \"ls /mnt/\" wi

9条回答
  •  花落未央
    2021-01-30 20:48

    On Windows Powershell:

    Get-PSDrive 
    [System.IO.DriveInfo]::getdrives()
    wmic diskdrive
    wmic volume
    

    Also the utility dskwipe: http://smithii.com/dskwipe

    dskwipe.exe -l
    

提交回复
热议问题