PowerShell Logo Small

Get-InitiatorPort



This is the built-in help made by Microsoft for the command 'Get-InitiatorPort', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' 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

Gets one or more host bus adapter (HBA) initiator ports.

SYNTAX


Get-InitiatorPort [[-NodeAddress] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-ConnectionType <ConnectionType[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-InitiatorPort [-AsJob] [-CimSession <CimSession[]>] [-iSCSITarget <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-InitiatorPort [-AsJob] [-CimSession <CimSession[]>] [-iSCSIConnection <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-InitiatorPort [-AsJob] [-CimSession <CimSession[]>] [-iSCSISession <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-InitiatorPort [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-VirtualDisk <CimInstance>] [<CommonParameters>]
Get-InitiatorPort [-AsJob] [-CimSession <CimSession[]>] [-ConnectionType <ConnectionType[]>] [-InstanceName <String[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-InitiatorPort [-AsJob] [-CimSession <CimSession[]>] [-ObjectId <String[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-InitiatorPort cmdlet gets and displays host bus adapter (HBA) initiator ports, such as SAS, FibreChannel, and iSCSI ports. Typically used either for connectio
n to an iSCSI target in the case of iSCSI, or for in the management of masking sets in the case of FibreChannel.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=294436
Format-Table
Select-Object
Set-InitiatorPort

REMARKS

<

Examples


Example 1: Get all initiator ports

PS C:\>Get-InitiatorPort
InstanceName NodeAddress PortAddress ConnectionType
------------ ----------- ----------- --------------
ROOT\ISCSIPRT\0000_0 iqn.1991-05.com.contoso:... ISCSI ANY PORT iSCSI



This example gets all available initiator ports.




Example 2: Get all initiator ports, and filter the display

PS C:\>Get-InitiatorPort | Select-Object -Property NodeAddress,ConnectionType | Format-Table -AutoSize
NodeAddress ConnectionType
----------- --------------
iqn.1991-05.com.microsoft:johnj99-pc2.contoso.com iSCSI



This example gets all available initiator ports. selects only the NodeAddress and ConnectionType properties, and then displays this information.