Get-PmemDisk

Gets persistent memory disks.

Syntax

Get-PmemDisk []
Get-PmemDisk
   [[-DiskNumber] <UInt32[]>]
   [<CommonParameters>]
Get-PmemDisk
   [-PhysicalDevice <PmemPhysicalDevice>]
   [<CommonParameters>]
Get-PmemDisk
   [-PhysicalDeviceId <String[]>]
   [<CommonParameters>]
Get-PmemDisk
   [-InputObject <CimInstance>]
   [<CommonParameters>]

Description

The Get-PmemDisk cmdlet gets persistent memory disks. You can get disks by number or physical device.

Examples

Example 1: Get persistent memory disks

Get-PmemDisk

DiskNumber Size   HealthStatus AtomicityType CanBeRemoved PhysicalDeviceIds UnsafeShutdownCount
---------- ----   ------------ ------------- ------------ ----------------- -------------------
2          252 GB Healthy      None          True         {20, 120}         0
3          252 GB Healthy      None          True         {1020, 1120}      0

This example gets all persistent memory disks.

Example 2: Get persistent memory disk by number

Get-PmemDisk -DiskNumber 2

DiskNumber Size   HealthStatus AtomicityType CanBeRemoved PhysicalDeviceIds UnsafeShutdownCount
---------- ----   ------------ ------------- ------------ ----------------- -------------------
2          252 GB Healthy      None          True         {20, 120}         0

This example gets the specified persistent memory disk.

Example 3: Get physical disk information

Get-PmemDisk | Get-PhysicalDisk | select SerialNumber, HealthStatus, OperationalStatus, OperationalDetails

SerialNumber               HealthStatus OperationalStatus  OperationalDetails
------------               ------------ ------------------ ------------------
802c-01-1602-117cb5fc      Healthy      OK
802c-01-1602-117cb64f      Warning      Predictive Failure {Threshold Exceeded,NVDIMM_N Error}

This example gets persistent memory disks. It then gets the physical disks that host them and uses the select command to display serial number, health status, and operational information.

Parameters

-DiskNumber

Specifies the disk number of persistent memory disk to get.

Type:UInt32[]
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Specifies the input object that is used in a pipeline command.

Type:CimInstance
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-PhysicalDevice

Specifies a physical disk. The cmdlet gets persistent memory disks on the physical disk.

Type:PmemPhysicalDevice
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-PhysicalDeviceId

Specifies the ID of a physical disk. The cmdlet gets persistent memory disks on the physical disk.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Storage.PersistentMemory.Management.PmemPhysicalDevice

CimInstance

Outputs

Object