Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-IscsiVirtualDisk

Remove-IscsiVirtualDisk

microsoft.iscsi.target.commands.dll

Synopsis

Deletes a Virtual Disk object, without deleting the virtual hard disk (VHD) file.

Syntax

Remove-IscsiVirtualDisk [-Path] [-ComputerName] [-Credential] [<CommonParameters>]

Remove-IscsiVirtualDisk [-ComputerName] [-Credential] [-InputObject] [<CommonParameters>]

Detailed Description

The Remove-IscsiVirtualDisk cmdlet deletes the iSCSI Virtual Disk object. The virtual hard disk (VHD) file is not deleted.

Parameters

-ComputerName <String>

Specifies the computer name, or IP address, of the remote computer, if this cmdlet is run on a remote computer. Specifies the cluster resource group network name, or cluster node name, if this cmdlet is run on a cluster configuration.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-Credential <PSCredential>

Specifies the credentials when connecting to a remote computer.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-InputObject <IscsiVirtualDisk>

Accepts an iSCSI virtual disk object from the input pipeline.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Path <String>

Specifies the path of the VHD file that is associated with the iSCSI virtual disk. Filter the iSCSI Virtual Disk object using this parameter.

Aliases

DevicePath

Required?

true

Position

1

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

Input Type

Microsoft.Iscsi.Target.Commands.IscsiVirtualDisk

Return Type

None

Notes

None

Examples

EXAMPLE 1

This example deletes a virtual disk with the path E:\temp\vhd1.vhdx.

PS C:\> Remove-IscsiVirtualDisk –Path "E:\temp\vhd1.vhdx"

Online Version
Checkpoint-IscsiVirtualDisk
Convert-IscsiVirtualDisk
Get-IscsiVirtualDisk
Import-IscsiVirtualDisk
New-IscsiVirtualDisk
Restore-IscsiVirtualDisk
Set-IscsiVirtualDisk