🖥️ Batch (CMD)

Get Logical Disks Report (Batch)

Uses wmic to list Logical Disks (Win32_LogicalDisk) straight from the command line.

By WindowsScripting.com · 321 B
GetLogicalDiskReport.bat
@echo off
:: ============================================================
:: GetLogicalDiskReport.bat
::
:: Reports Logical Disks via WMI (Win32_LogicalDisk).
:: ============================================================

wmic path Win32_LogicalDisk get DeviceID,VolumeName,Size,FreeSpace,DriveType /format:table

pause