PowerTip: Use PowerShell to Identify SSD

Summary: Use Windows PowerShell to find a solid-state drive (SSD).

Hey, Scripting Guy! Question How can I use Windows PowerShell to find computers that have a solid-state drive (SSD)?

Hey, Scripting Guy! Answer In Windows 8, use the Get-Disk function, and search the model information for the letters SSD:

PS C:\> get-disk | ? model -match 'ssd'


Number Friendly Name                            OperationalS  Total Size Partition

                                                tatus                    Style

------ -------------                            ------------  ---------- -----------

0      INTEL SSDSA2BW160G3L                     Online         149.05 GB GPT

Hey, Scripting Guy! Answer In Windows 7 and earlier, use the Get-WmiObject cmdlet and query the Win32_DiskDrive WMI class:

PS C:\> Get-WmiObject win32_diskdrive | where { $_.model -match 'SSD'}


Partitions : 3


Model      : INTEL SSDSA2BW160G3L

Size       : 160039272960

Caption    : INTEL SSDSA2BW160G3L 


Comments (9)

  1. ceasley says:

    What if "SSD" doesn't appear in the model?  Is there a better way to check for an SSD?

  2. shawn says:

    I found there is no such "SSD" in my environment.

  3. without says:

    does not work on lenovo carbon x1. shows  SanDisk SD5SG2256G1052E

  4. Ed Wilson says:

    @Ceasley There appears to be no API or WMI class that provides the information directly. You can look at the disk performance. See this article blogs.msdn.com/…/support-and-q-a-for-solid-state-drives-and.aspx

  5. Ed Wilson says:

    @Shawn you may also want to look at disk performance as an indicator. blogs.msdn.com/…/support-and-q-a-for-solid-state-drives-and.aspx

  6. Ed Wilson says:

    @Without If you know the name of your SSD, then you should modify the command to find and to return the SSD that you have.

  7. Matthew Sawyer says:

    This is a nice script, thank you. However, it won't catch all SSDs. I have an OCZ Octane 128 GB SSD and it reports itself simply as "OCZ OCTANE".

    This will work for most SSDs, but might need to set up a small dictionary of names to catch the outliers.

  8. DW says:

    KINGSTON SV300S37A60G ATA Device

    It’s a SSD

    1. Pat says:

      I was looking through various WMI queries and finally stumbled across one that tells if a drive is SSD or HHD. The query is supported on Windows 8 or newer. You can read details about here: https://msdn.microsoft.com/en-us/library/windows/desktop/hh830532(v=vs.85).aspx

      The WMI Namespace is root\Microsoft\Windows\Storage and the WMI Class is MSFT_PhysicalDisk

      Both MediaType and SpindleSpeed will give you a value that indicates SSD or HDD.

Skip to main content