List Disk and Volume Information for Disks on Command Line with Diskpart

Here’s a one-liner to list disk and volume information for attached disks in Windows from the command line. Requires administrative permission since it uses Diskpart.
@echo list disk >list.dp && @echo list volume >>list.dp && diskpart -s list.dp

Published by

Rich

Just another IT guy.

Leave a Reply

Your email address will not be published. Required fields are marked *