This is the built-in help made by Microsoft for the command 'Set-InitiatorPort', 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.
Sets properties on the InitiatorPort object.
Set-InitiatorPort [-NodeAddress] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -NewNodeAddress <String> [-Confirm] [-WhatIf]
[<CommonParameters>]
Set-InitiatorPort [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> -NewNodeAddress <String> [-Confirm] [-WhatIf]
[<CommonParameters>]
Set-InitiatorPort [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -NewNodeAddress <String> -ObjectId <String[]> [-Confirm] [-WhatIf]
[<CommonParameters>]
The Set-InitiatorPort cmdlet sets properties on the InitiatorPort object.
<
Online Version: http://go.microsoft.com/fwlink/?LinkID=307031
Get-InitiatorPort
<
Example 1: Change the node address
PS C:\> $address = (Get-InitiatorPort)
PS C:\> $address | Select NodeAddress
PS C:\> Set-InitiatorPort -NodeAddress $address.NodeAddress -NewNodeAddress "iqn.test2"
NodeAddress
-----------
iqn.1991-05.com.contoso:test-pc2.contoso.com
This example uses a node address from the Get-InitiatorPort cmdlet as input.