Storage module: setup and commands
Documentation: Microsoft Learn
Inspect physical disks, partitions, volumes and Storage Spaces with Get-Disk and Get-Volume before any destructive initialization or formatting step.
Getting it
Built into Windows 8 and Windows Server 2012 onward.
Examples
Show reference output
Show reference output
What it is for
Use it for capacity and health reporting where a volume view serves better than a drive letter view. Get-PhysicalDisk is the place to look when a disk is predicting failure while the volume above it still reports itself healthy.
Typical tasks
- Report free space for every volume
- Find volumes with no drive letter
- Check physical disk health and operational status
- Inspect the partition layout on a disk
- Identify unallocated capacity on a disk
- Review the state of a Storage Spaces pool
Check the installed version
Compare the module path and version with the session used by your scheduled task or automation account. Use it for capacity and health reporting where a volume view serves better than a drive letter view. Get-PhysicalDisk is the place to look when a disk is predicting failure while the volume above it still reports itself healthy.