PowerShell Logo Small

Connect-IscsiTarget



This is the built-in help made by Microsoft for the command 'Connect-IscsiTarget', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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

Establishes a connection between the local iSCSI initiator, and the specified iSCSI target device.

SYNTAX


Connect-IscsiTarget [-AsJob] [-AuthenticationType <String>] [-ChapSecret <String>] [-ChapUsername <String>] [-CimSession <CimSession[]>] [-InitiatorInstanceName <String>]
[-InitiatorPortalAddress <String>] [-IsDataDigest <Boolean>] [-IsHeaderDigest <Boolean>] [-IsMultipathEnabled <Boolean>] [-IsPersistent <Boolean>] [-ReportToPnP <Boolean>]
[-TargetPortalAddress <String>] [-TargetPortalPortNumber <UInt16>] [-ThrottleLimit <Int32>] -NodeAddress <String> [<CommonParameters>]
Connect-IscsiTarget [-AsJob] [-AuthenticationType <String>] [-ChapSecret <String>] [-ChapUsername <String>] [-CimSession <CimSession[]>] [-InitiatorInstanceName <String>]
[-InitiatorPortalAddress <String>] [-IsDataDigest <Boolean>] [-IsHeaderDigest <Boolean>] [-IsMultipathEnabled <Boolean>] [-ReportToPnP <Boolean>] [-TargetPortalAddress
<String>] [-TargetPortalPortNumber <UInt16>] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Connect-IscsiTarget cmdlet initiates a connection to the specified iSCSI target device.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?linkid=289556
iSCSI on TechNet
Storage on TechNet
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
PS C:\>Connect-IscsiTarget -NodeAddress $Tar.NodeAddress
AuthenticationType : NONE
InitiatorInstanceName : ROOT\ISCSIPRT\0000_0
InitiatorNodeAddress : iqn.1991-05.com.contoso:deepcore.contoso.com
InitiatorPortalAddress :
InitiatorSideIdentifier : 400001370000
IsConnected : True
IsDataDigest : False
IsDiscovered : True
IsHeaderDigest : False
IsMultipathEnabled : False
IsPersistent : True
NumberOfConnections : 1
SessionIdentifier : fffffa800d008430-400001370000000b
TargetNodeAddress : iqn.1991-05.com.contoso:testiscsi-deepcore-target
TargetSideIdentifier : 0100



This example connects an iSCSI target, collects information about the target, and stores it in a variable, disconnects, and then connects using this cmdlet