Determine the type of drive, HDD or SSD

Using PowerShell, we determine the models, types and interfaces of all HDD or SSD drives in the computer.
To do this, run on the command line:

powershell "Get-PhysicalDisk | ft -AutoSize DeviceId,Model, @{n='Size(GB)';e={[math]::Round($_.Size/1GB,2)}}, MediaType,BusType"

Размер: 14 B, дата: 20 May. 2021

Author: admin