PowerShell Logo Small

Disconnect-IscsiTarget



This is the built-in help made by Microsoft for the command 'Disconnect-IscsiTarget', 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

Disconnects sessions to the specified iSCSI target object.

SYNTAX


Disconnect-IscsiTarget [-AsJob] [-CimSession <CimSession[]>] [-NodeAddress <String[]>] [-PassThru] [-SessionIdentifier <String>]
[-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Disconnect-IscsiTarget [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-SessionIdentifier <String>] [-ThrottleLimit <Int32>] -InputObject
<CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Disconnect-IscsiTarget cmdlet disconnects a connected iSCSI target. To view connected iSCSI targets, use the Get-iSCSITarget cmdlet.



<

RELATED LINKS

iSCSI on TechNet
Storage on TechNet
Get-iSCSITarget
N:MPIO
N:Storage



REMARKS

<

Examples


EXAMPLE 1

PS C:\>Get-IscsiTarget
IsConnected NodeAddress
----------- -----------
True iqn.1991-05.com.contoso:testiscsi-deepcore-target


PS C:\>$Tar = Get-IscsiTarget



PS C:\>Disconnect-IscsiTarget -NodeAddress $Tar.NodeAddress
Confirm
Are you sure you want to perform this action?
Performing operation '' on Target ''.


[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):Y



This example collects information about a connected iSCSI target, and then using that information to run this cmdlet.