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

PowerTip: Use PowerShell to Find Where Drive Letter is Stored

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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