PowerTip: Use PowerShell to Find Where Drive Letter is Stored

Doctor Scripto

Summary: Use the Get-Partition and Get-Disk cmdlets to identify data storage locations.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily figure out which disk a particular drive letter is on?

Hey, Scripting Guy! Answer Use Get-Partition with the drive letter and pipe the results to Get-Disk, for example:

Get-Partition –DriveLetter Z | Get-Disk

0 comments

Discussion is closed.

Feedback usabilla icon