PowerTip: Find the Status of Disk Drives in Windows 8 with PowerShell

Summary: Learn how to use Windows PowerShell 3.0 to find the status of disk drives on Windows 8.

Hey, Scripting Guy! Question How can I check on the status of disk drives on my computer running Windows 8?

Hey, Scripting Guy! Answer Use the Get-Disk cmdlet, as shown here.

PS C:\> Get-Disk

Number Friendly Name  Operational Status  Total Size Partition Style

—— ————-                            ————  ———- ———–

0      INTEL SSDSA2BW160G3L                     Online         149.05 GB MBR

1      SAMSUNG HN-M101MBB USB Device            Offline        931.51 GB MBR

Comments (2)

  1. Nice tip for the toolkit! There are so many cmdlets to remember… Thanks.

  2. Ed Wilson says:

    @Craig Lussier you are welcome. Yes, there are thousands of cmdlets / functions in Windows 8 and Windows Server 2012. This is why it is important to get really good at using Get-Command, Get-Help and even Show-Command.