## PowerCLI Reference

# Set-VsanIscsiInitiatorGroup

## Synopsis

This cmdlet modifies the specified vSAN iSCSI initiator groups.

Syntax

Set-VsanIscsiInitiatorGroup [-InitiatorGroup] <VsanIscsiInitiatorGroup[]> [-AddInitiator <String[]>] [-RemoveInitiator <String[]>] [-Server <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-VsanIscsiInitiatorGroup
New-VsanIscsiInitiatorGroup
Remove-VsanIscsiInitiatorGroup

Detailed Description

This cmdlet modifies the specified vSAN iSCSI initiator groups.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
InitiatorGroup | VsanIscsiInitiatorGroup[] | Specifies the vSAN iSCSI initiator group to which you want to add or remove initiators. | true | true (ByValue)
AddInitiator | String[] | Specifies the names of the vSAN iSCSI initiators which you want to add to the initiator group. | false | false
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | false
RemoveInitiator | String[] | Specifies the names of the vSAN iSCSI initiators which you want to remove from the initiator group. | false | false
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | false
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

Return Type

The list of modified VsanIscsiInitiatorGroup objects

Notes

Examples

-------------- Example 1 --------------

    Set-VsanIscsiInitiatorGroup -InitiatorGroup $initiatorGroup -AddInitiator "initiator1-iqn", "initiator2-iqn" -RemoveInitiator "initiator3-iqn"

Adds iSCSI initiators with IQN "initiator1-iqn" and "initiator2-iqn" to the $initiatorGroup initiator group and removes iSCSI initiator with IQN "initiator3-iqn" from the initiator group.

Copyright © VMware, Inc. All rights reserved.