Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to List All Volumes

$
0
0

Summary: Use Windows PowerShell to identify all partitions on a disk drive.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily see all of the partitions on a disk drive?

Hey, Scripting Guy! Answer Pipe the Disk object through Get-Partition (to identify its partitions), then pipe that through Get-Volume to get
           the volume data. Here is an example of using this on the default hard drive (drive 0):

Get-Disk –number 0 | Get-Partition | Get-Volume


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>