Editar

Compartilhar via


Remove-PmemDisk

Removes persistent memory disks.

Syntax

Remove-PmemDisk
      -DiskNumber <UInt32>
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-PmemDisk
      [-Simulated]
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-PmemDisk cmdlet removes persistent memory disks.

You can use this cmdlet for troubleshooting. If you remove a persistent memory disk, you lose all data on that disk.

You can specify a disk by number or remove disks from simulated persistent memory.

Examples

Example 1: Remove a persistent memory disk

Remove-PmemDisk -DiskNumber 2

This will remove the persistent memory disk(s) from the system and will result in data loss.
Remove the persistent memory disk(s)?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y
Removing the persistent memory disk. This may take a few moments.

This example removes a persistent memory disk.

Example 1: Remove a disk in simulated persistent memory

Remove-PmemDisk -Simulated

This will remove the persistent memory disk(s) from the system and will result in data loss.
Remove the persistent memory disk(s)?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y
Removing the persistent memory disk. This may take a few moments.

This example removes the disks in simulated persistent memory.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DiskNumber

Specifies the disk number of persistent memory disk to remove.

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

-Force

Indicates that the command removes the disk without verification. Removing a disk results in data loss.

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

-Simulated

Indicates that the cmdlet removes simulated disks.

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

UInt32

Outputs

Object