PowerTip: Use PowerShell to Identify SSD

PowerTip: Use PowerShell to Identify SSD

  • Comments 8
  • Likes

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 


Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • What if "SSD" doesn't appear in the model?  Is there a better way to check for an SSD?

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

  • does not work on lenovo carbon x1. shows  SanDisk SD5SG2256G1052E

  • @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

  • @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

  • @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.

  • 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.

  • KINGSTON SV300S37A60G ATA Device

    It's a SSD