天天看點

【原創】如何判斷Win10計算機的硬碟是HHD還是SSD運作結果更新PowerShell線上幫助檢視幫助文檔更多示例

從裝置管理器中不好判斷。

不過可以使用Windows PoweShell指令:Get-PhysicalDisk

運作結果

Wind+R打開 輸入PowerShell,點選确定

【原創】如何判斷Win10計算機的硬碟是HHD還是SSD運作結果更新PowerShell線上幫助檢視幫助文檔更多示例

如圖所示

【原創】如何判斷Win10計算機的硬碟是HHD還是SSD運作結果更新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"
           

繼續閱讀