PowerShell:使用 Get-PhysicalDisk 指令的 MediaType,找出磁碟是否為 SSD
範例01:Identify SSD
# Identify SSD Get-PhysicalDisk | Select FriendlyName, MediaType, BusType
-- 01_Get-PhysicalDisk 識別SSD

範例02:Getting all physical disks
# Getting all physical disks Get-PhysicalDisk
-- 02_Get-PhysicalDisk

範例03:Getting all information from all physical disks
# Getting all information from all physical disks Get-PhysicalDisk | Select *
-- 03_查詢全部磁碟的各項資訊

-- 10_VM_Get-PhysicalDisk

-- 11_VM_Get-PhysicalDisk

-- 12_VM_Get-PhysicalDisk_SELECT

參考資料
PowerTip: Use PowerShell to Identify SSD
https://blogs.technet.microsoft.com/heyscriptingguy/2013/03/17/powertip-use-powershell-to-identify-ssd/
Configuring Storage Spaces with a NVDIMM-N write-back cache
https://docs.microsoft.com/en-us/sql/relational-databases/performance/configuring-storage-spaces-with-a-nvdimm-n-write-back-cache
Determining Disk Type with Get-PhysicalDisk
https://www.pdq.com/blog/determining-disk-type-with-get-physicaldisk/
沒有留言:
張貼留言