PowerShell Logo Small

Set-InitiatorPort



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.

SYNOPSIS

Sets properties on the InitiatorPort object.

SYNTAX


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>]



Search powershellhelp.space

DESCRIPTION


The Set-InitiatorPort cmdlet sets properties on the InitiatorPort object.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=307031
Get-InitiatorPort

REMARKS

<

Examples


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.