PowerShell Logo Small

Remove-IscsiVirtualDiskTargetMapping



This is the built-in help made by Microsoft for the command 'Remove-IscsiVirtualDiskTargetMapping', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

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

SYNTAX


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



Search powershellhelp.space

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.



<

RELATED LINKS

Add-VirtualDiskTargetMapping

REMARKS

<

Examples


EXAMPLE 1

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



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