If you are on Windows 8, Windows Server 2012 or later, you can use one of the storage cmdlets to verify this:
Get-Disk
The result of this command will be formatted as follows:
PS C:\> Get-Disk Number Friendly Name OperationalStatus Total Size Partition Style ------ ------------- ----------------- ---------- --------------- 0 Microsoft Virtual Disk Online 42 GB GPT 1 Microsoft Virtual Disk Online 1 GB GPT 2 Microsoft Virtual Disk Offline 2 GB RAW 3 Microsoft Virtual Disk Offline 3 GB RAW
Note that the rightmost column indicates the style of the section that is part of the data you are looking for.
If you are in Windows 7, Windows Server 2008 R2 or later, you must use diskpart or WMI to get this information. I prefer to use diskpart. A type
diskpart
followed by
list disk
The result will look like this:
PS C:\> diskpart Microsoft DiskPart version 6.3.9600 Copyright (C) 1999-2013 Microsoft Corporation. On computer: WIN-BN8G3VMNQ9T DISKPART> list disk Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 42 GB 0 B * Disk 1 Online 1024 MB 991 MB * Disk 2 Offline 2048 MB 2048 MB Disk 3 Offline 3072 MB 3072 MB
Note that drives 0 and 1 are GPT drives, and they have an asterisk in the corresponding column.
source share