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-IscsiVirtualDiskTargetMapping

Remove-IscsiVirtualDiskTargetMapping

microsoft.iscsi.target.commands.dll

Synopsis

Removes the assignment between the specified iSCSI virtual disk and the specified iSCSI target.

Syntax

Remove-IscsiVirtualDiskTargetMapping [-TargetName] [-Path] [-ComputerName] [-Credential] [<CommonParameters>]

Detailed Description

The Remove-IscsiVirtualDiskTargetMapping cmdlet removes the assignment between a virtual disk and an iSCSI target. The virtual disk will no longer be accessible by an iSCSI initiator once the assignment is removed.

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

-Path <String>

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

Aliases

DevicePath

Required?

true

Position

2

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-TargetName <String>

Specifies the name of the iSCSI target.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

Input Type

None

Return Type

None

Notes

None

Examples

EXAMPLE 1

This example un-assigns, or disassociates, the virtual disk at E:\temp\vhd1.vhdx from the target named TargetOne. Use Add-IscsiVirtualDiskTargetMapping to assign the virtual disk to an iSCSI target before it can be used by an iSCSI initiator.

PS C:\> Remove-IscsiVirtualDiskTargetMapping -TargetName "TargetOne" –Path "E:\temp\vhd1.vhdx"

Online Version
Add-IscsiVirtualDiskTargetMapping