【原创】如何判断Win10计算机的硬盘是HHD还是SSD

从设备管理器中不好判断。
不过可以使用Windows PoweShell命令:Get-PhysicalDisk

运行结果

Wind+R打开 输入PowerShell,点击确定
在这里插入图片描述

如图所示
在这里插入图片描述

更新PowerShell在线帮助

在使用一个命令时,最好还能了解一下这个命令的使用说明,
比如

PS C:\Windows\system32> help Get-PhysicalDisk                                                                                                                                                                                                   名称                                                                                                                        Get-PhysicalDisk                                                                                                                                                                                                                            语法
    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk [[-FriendlyName] <string>] [[-SerialNumber] <string>]  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]

    Get-PhysicalDisk  [<CommonParameters>]


别名
    无


备注
    Get-Help 无法在此计算机上找到此 cmdlet 的帮助文件。只能显示部分帮助。
        -- 若要下载和安装包含此 cmdlet 的模块的帮助文件,请使用 Update-Help。

不过这个文档却没啥实际价值。
因此按照提示更新帮助

PS C:\Windows\system32> Update-Help

然后就是更新帮助文档,这里需要一段时间。

查看帮助文档

PS C:\Windows\system32> help Get-PhysicalDisk

名称
    Get-PhysicalDisk

摘要
    Gets a list of all PhysicalDisk objects visible across any available Storage Management Providers, or optionally a
    filtered list.


语法
    Get-PhysicalDisk [-CanPool] [-CimSession <CimSession>] [-Description <String>] [-HealthStatus <Get-PhysicalDisk.Phy
    sicalDiskHealthStatus>] [-Manufacturer <String>] [-Model <String>] [-UniqueId <String>] [-Usage <Get-PhysicalDisk.P
    hysicalDiskUsage>] [<CommonParameters>]

    Get-PhysicalDisk [-CanPool] [-CimSession <CimSession>] [-Description <String>] [-HealthStatus <Get-PhysicalDisk.Phy
    sicalDiskHealthStatus>] [-Manufacturer <String>] [-Model <String>] [-ObjectId <String>] [-Usage <Get-PhysicalDisk.P
    hysicalDiskUsage>] [<CommonParameters>]

    Get-PhysicalDisk [[-FriendlyName] <String>] [[-SerialNumber] <String>] [-CanPool] [-CimSession <CimSession>] [-Desc
    ription <String>] [-HealthStatus <Get-PhysicalDisk.PhysicalDiskHealthStatus>] [-Manufacturer <String>] [-Model <Str
    ing>] [-Usage <Get-PhysicalDisk.PhysicalDiskUsage>] [<CommonParameters>]

    Get-PhysicalDisk [-CanPool] [-CimSession <CimSession>] [-Description <String>] [-HealthStatus <Get-PhysicalDisk.Phy
    sicalDiskHealthStatus>] [-Manufacturer <String>] [-Model <String>] [-Usage <Get-PhysicalDisk.PhysicalDiskUsage>] -S
    torageSubsystem <CimInstance> [<CommonParameters>]

    Get-PhysicalDisk [-CanPool] [-CimSession <CimSession>] [-Description <String>] [-HealthStatus <Get-PhysicalDisk.Phy
    sicalDiskHealthStatus>] [-Manufacturer <String>] [-Model <String>] [-Usage <Get-PhysicalDisk.PhysicalDiskUsage>] -S
    torageEnclosure <CimInstance> [<CommonParameters>]

    Get-PhysicalDisk [-CanPool] [-CimSession <CimSession>] [-Description <String>] [-HealthStatus <Get-PhysicalDisk.Phy
    sicalDiskHealthStatus>] [-Manufacturer <String>] [-Model <String>] [-PhysicallyConnected] [-Usage <Get-PhysicalDisk
    .PhysicalDiskUsage>] -StorageNode <CimInstance> [<CommonParameters>]

    Get-PhysicalDisk [-CanPool] [-CimSession <CimSession>] [-Description <String>] [-HealthStatus <Get-PhysicalDisk.Phy
    sicalDiskHealthStatus>] [-Manufacturer <String>] [-Model <String>] [-Usage <Get-PhysicalDisk.PhysicalDiskUsage>] -S
    toragePool <CimInstance> [<CommonParameters>]

    Get-PhysicalDisk [-CanPool] [-CimSession <CimSession>] [-Description <String>] [-HasAllocations <Boolean>] [-Health
    Status <Get-PhysicalDisk.PhysicalDiskHealthStatus>] [-Manufacturer <String>] [-Model <String>] [-NoRedundancy] [-Se
    lectedForUse <Boolean>] [-Usage <Get-PhysicalDisk.PhysicalDiskUsage>] [-VirtualRangeMax <UInt64>] [-VirtualRangeMin
     <UInt64>] -VirtualDisk <CimInstance> [<CommonParameters>]

    Get-PhysicalDisk [-CimSession <CimSession>] [<CommonParameters>]


说明
    The Get-PhysicalDisk cmdlet gets a list of all PhysicalDisk objects visible across any available Storage Management
     Providers, or optionally a filtered list of disks.


相关链接
    Online Version: http://go.microsoft.com/fwlink/?LinkId=816394
    Add-PhysicalDisk
    Get-StorageEnclosure
    Get-StoragePool
    Get-StorageSubSystem
    New-StoragePool
    Remove-PhysicalDisk
    Reset-PhysicalDisk
    Set-PhysicalDisk
    New-VirtualDisk
    Get-StorageNode

备注
    若要查看示例,请键入: "get-help Get-PhysicalDisk -examples".
    有关详细信息,请键入: "get-help Get-PhysicalDisk -detailed".
    若要获取技术信息,请键入: "get-help Get-PhysicalDisk -full".
    有关在线帮助,请键入: "get-help Get-PhysicalDisk -online"

这里,帮助信息就很丰富了,如果还要继续深入了解,那就看在线链接吧。
https://learn.microsoft.com/en-us/powershell/module/storage/get-physicaldisk?view=windowsserver2022-ps

更多示例

    若要查看示例,请键入: "get-help Get-PhysicalDisk -examples".
    有关详细信息,请键入: "get-help Get-PhysicalDisk -detailed".
    若要获取技术信息,请键入: "get-help Get-PhysicalDisk -full".
    有关在线帮助,请键入: "get-help Get-PhysicalDisk -online"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

赵庆明老师

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值