New
#1291
WMIC Deprecated - HEADS UP
Should we avoid using WMIC?
WMIC Deprecated - HEADS UP
Should we avoid using WMIC?
Code:Microsoft Windows [Version 10.0.19043.1466] (c) Microsoft Corporation. All rights reserved. C:\WINDOWS\system32>PowerShell GWMI -Class MSFT_PhysicalDisk -Namespace root\Microsoft\Windows\Storage^|Select FriendlyName,MediaType FriendlyName MediaType ------------ --------- Hitachi HTS727575A9E364 4 C:\WINDOWS\system32>
It looks like Windows may be detecting your HDD as SSD.
Mine is normal as expected.
but, try this @zbookCode:Microsoft Windows [Version 10.0.22000.434] (c) Microsoft Corporation. All rights reserved. ============================== jbcarreon123's CMD AutoRun ------------------------------ PC Name: JB-PC RunAs Admin? False Windows Version: Microsoft Windows 11 Pro ============================== C:\Users\jbcarreon123>PowerShell GWMI -Class MSFT_PhysicalDisk -Namespace root\Microsoft\Windows\Storage^|Select FriendlyName,MediaType FriendlyName MediaType ------------ --------- Patriot Burst 4 USB DISK 2.0 0 C:\Users\jbcarreon123>
I modified Matthew's code so it will useCode:PowerShell GWMI -Class MSFT_PhysicalDisk -Namespace root\Microsoft\Windows\Storage^|FT -A FriendlyName,@{l='MediaType';e={if ($_.MediaType -eq '0') {'USB'} elseif ($_.MediaType -eq '3') {'HDD'} else {'SSD'}};A='Right'}SSD
instead of4
[code]Code:Microsoft Windows [Version 10.0.22000.434] (c) Microsoft Corporation. All rights reserved. ============================== jbcarreon123's CMD AutoRun ------------------------------ PC Name: JB-PC RunAs Admin? False Windows Version: Microsoft Windows 11 Pro ============================== C:\Users\jbcarreon123>PowerShell GWMI -Class MSFT_PhysicalDisk -Namespace root\Microsoft\Windows\Storage^|FT -A FriendlyName,@{l='MediaType';e={if ($_.MediaType -eq '0') {'USB'} elseif ($_.MediaType -eq '3') {'HDD'} else {'SSD'}};A='Right'} FriendlyName MediaType ------------ --------- Patriot Burst SSD USB DISK 2.0 USB C:\Users\jbcarreon123>
This is from the Crucial scanner:
Code:What's currently on your primary physical drive: Manufacturer: HGST Part no.: HTS727575A9E364 Drive type: 750GB 7200RPM Hard Drive Drive form factor: 2.5" Current usage: 205.52 GB (29.8%) Free space: 483.64 GB Total: 689.16 GB
RAM & SSD Upgrades | hp - compaq | HP ZBook 17 Mobile Workstation | Crucial.com
The windows commands do not detect the drive that is used for flash cache.
Maybe flash cache alters the findings for the windows commands?
See if Disk Type is SSD or HDD in Windows 10
If no one answers your above question, try asking a question on the following site:
Stack Overflow - Where Developers Learn, Share, & Build Careers
Experts abound there.
My HDD is always shown as an HDD by all related commands.
This is another command that initially appeared to work:
When checked on a computer with a SSD it also displayed: Fixed hard disk mediaCode:Microsoft Windows [Version 10.0.19043.1466] (c) Microsoft Corporation. All rights reserved. C:\WINDOWS\system32>wmic diskdrive get mediatype MediaType Fixed hard disk media C:\WINDOWS\system32>
DoesPowerShell Get-PhysicalDisk
produce correct output on the computer with an SSD?
BTW, I have not seen BSOD for almost ten days. I have just installed Malwarebytes Anti-Ransomware again.
That's great news.
This is from a computer with HD in RAID 0 (This is hardware RAID (HD with flash drive (SSD)).
The Windows commands do not report any data about the flash cache.
The flash cache is detected by Crystal Disk info, Hard Disk Sentinel, etc.
Code:Microsoft Windows [Version 10.0.19043.1466] (c) Microsoft Corporation. All rights reserved. C:\WINDOWS\system32>powershell get-physicaldisk Number FriendlyName SerialNumber MediaType CanPool OperationalStatus HealthStatus Usage Size ------ ------------ ------------ --------- ------- ----------------- ------------ ----- ---- 0 Hitachi HTS727575A9E364 J3340084K1LYTA SSD False OK Healthy Auto-Select 698.64 GB C:\WINDOWS\system32>
This is the same command on a computer with SSD:
Code:Microsoft Windows [Version 10.0.17763.1577] (c) 2018 Microsoft Corporation. All rights reserved. C:\WINDOWS\system32>wmic diskdrive get mediatype MediaType Fixed hard disk media C:\WINDOWS\system32>powershell get-physicaldisk Number FriendlyName SerialNumber MediaType CanPool OperationalStatus HealthStatus Usage Size ------ ------------ ------------ --------- ------- ----------------- ------------ ----- ---- 0 SanDisk SD6PP4M-256G-1006 150988401207 SSD False OK Healthy Auto-Select 238.47 GB C:\WINDOWS\system32>