November 25th, 2012

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

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.