PowerShell Logo Small

Get-InitiatorId



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

Gets the InitiatorID objects for the specified iSCSI initiators.

SYNTAX


Get-InitiatorId [[-InitiatorAddress] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-HostType <HostType[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-InitiatorId [-AsJob] [-CimSession <CimSession[]>] [-MaskingSet <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-InitiatorId [-AsJob] [-CimSession <CimSession[]>] [-StorageSubSystem <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-InitiatorId [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-UniqueId <String[]>] [<CommonParameters>]
Get-InitiatorId [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-VirtualDisk <CimInstance>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-InitiatorId cmdlet gets the InitiatorID objects for the specified iSCSI initiators.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=294435
Connect-iSCSITarget
Get-InitiatorPort
Remove-InitiatorId

REMARKS

<

Examples


Example 1: Get all InitiatorIDs

PS C:\>Get-InitiatorID



This example gets and displays all iSCSI initiator IDs on the computer.




Example 2: Get the storage providers for each InitiatorID

PS C:\>Get-InitiatorId | Get-StorageSubSystem | Get-StorageProvider



This example gets and displays the storage providers for each InitiatorID by piping the output from the Get-InitiatorId cmdlet to the Get-StorageSubSystem cmdlet, and then
piping that cmdlet’s output to the Get-StorageProvider cmdlet.




Example 3:Get the InitatorID objects for a masking set

PS C:\>Get-InitiatorId -MaskingSet (Get-MaskingSet -FriendlyName *EQLV1)



This example uses the Get-MaskingSet cmdlet to get the masking set with a friendly name that ends with EQLV1, and then gets all associated InitiatorID objects.