|
| 1 | +--- |
| 2 | +description: Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell. |
| 3 | +external help file: Microsoft.FailoverClusters.PowerShell.dll-Help.xml |
| 4 | +Module Name: FailoverClusters |
| 5 | +ms.date: 08/28/2024 |
| 6 | +online version: https://learn.microsoft.com/powershell/module/failoverclusters/set-clusterexcludedadapter?view=windowsserver2025-ps&wt.mc_id=ps-gethelp |
| 7 | +schema: 2.0.0 |
| 8 | +title: Set-ClusterExcludedAdapter |
| 9 | +--- |
| 10 | + |
| 11 | +# Set-ClusterExcludedAdapter |
| 12 | + |
| 13 | +## SYNOPSIS |
| 14 | +Sets a network adapter to the list of excluded adapters. |
| 15 | + |
| 16 | +## SYNTAX |
| 17 | + |
| 18 | +``` |
| 19 | +Set-ClusterExcludedAdapter -ExclusionType <AdapterExclusionType> -ExclusionValue <String[]> |
| 20 | + [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>] |
| 21 | +``` |
| 22 | + |
| 23 | +## DESCRIPTION |
| 24 | + |
| 25 | +The `Set-ClusterExcludedAdapter` cmdlet configures a network adapter in a list of network adapters |
| 26 | +that should be excluded from use by the Failover Cluster. By default, the cluster will use all |
| 27 | +available network adapters, but in some cases you may want to reserve certain adapters as backup or |
| 28 | +management, such as Dell iDRAC or HPE iLO. |
| 29 | + |
| 30 | +## EXAMPLES |
| 31 | + |
| 32 | +### Example 1 |
| 33 | + |
| 34 | +```powershell |
| 35 | +Set-ClusterExcludedAdapter -ExclusionType "Description" -ExclusionValue "Node-1-FL1","Node-1-FL2" |
| 36 | +``` |
| 37 | + |
| 38 | +This example sets the list of excluded network adapters for the cluster. After running this |
| 39 | +command, the cluster will no longer use `Node-1-FL1` or `Node-1-FL2` for cluster communications, |
| 40 | +ensuring that they are available for management or backup purposes. |
| 41 | + |
| 42 | +## PARAMETERS |
| 43 | + |
| 44 | +### -AsJob |
| 45 | + |
| 46 | +Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to |
| 47 | +complete. |
| 48 | + |
| 49 | +The cmdlet immediately returns an object that represents the job and then displays the command |
| 50 | +prompt. You can continue to work in the session while the job completes. |
| 51 | + |
| 52 | +For more information about Windows PowerShell background jobs, see |
| 53 | +[about_Jobs](/powershell/module/microsoft.powershell.core/about/about_jobs). |
| 54 | + |
| 55 | +```yaml |
| 56 | +Type: SwitchParameter |
| 57 | +Parameter Sets: (All) |
| 58 | +Aliases: |
| 59 | + |
| 60 | +Required: False |
| 61 | +Position: Named |
| 62 | +Default value: None |
| 63 | +Accept pipeline input: False |
| 64 | +Accept wildcard characters: False |
| 65 | +``` |
| 66 | +
|
| 67 | +### -CimSession |
| 68 | +
|
| 69 | +Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session |
| 70 | +object, such as the output of a [New-CimSession](/powershell/module/cimcmdlets/new-cimsession) |
| 71 | +or [Get-CimSession](/powershell/module/cimcmdlets/get-cimsession) cmdlet. The default is the |
| 72 | +current session on the local computer. |
| 73 | +
|
| 74 | +```yaml |
| 75 | +Type: CimSession[] |
| 76 | +Parameter Sets: (All) |
| 77 | +Aliases: Session |
| 78 | + |
| 79 | +Required: False |
| 80 | +Position: Named |
| 81 | +Default value: None |
| 82 | +Accept pipeline input: False |
| 83 | +Accept wildcard characters: False |
| 84 | +``` |
| 85 | +
|
| 86 | +### -ExclusionType |
| 87 | +
|
| 88 | +Specifies the type of exclusion to remove from the cluster. Acceptable values are: |
| 89 | +
|
| 90 | +- `IPPrefix`: Excludes a network adapter based on its IP address. |
| 91 | +- `Description`: Excludes a network adapter based on its description. |
| 92 | +- `FriendlyName`: Excludes a network adapter based on its friendly name. |
| 93 | + |
| 94 | +```yaml |
| 95 | +Type: AdapterExclusionType |
| 96 | +Parameter Sets: (All) |
| 97 | +Aliases: |
| 98 | +Accepted values: IPPrefix, Description, FriendlyName |
| 99 | +
|
| 100 | +Required: True |
| 101 | +Position: Named |
| 102 | +Default value: None |
| 103 | +Accept pipeline input: False |
| 104 | +Accept wildcard characters: False |
| 105 | +``` |
| 106 | + |
| 107 | +### -ExclusionValue |
| 108 | + |
| 109 | +Specifies the value to use for the exclusion. The value of this parameter depends on the value of |
| 110 | +the `-ExclusionType` parameter. |
| 111 | + |
| 112 | +```yaml |
| 113 | +Type: String[] |
| 114 | +Parameter Sets: (All) |
| 115 | +Aliases: |
| 116 | +
|
| 117 | +Required: True |
| 118 | +Position: Named |
| 119 | +Default value: None |
| 120 | +Accept pipeline input: False |
| 121 | +Accept wildcard characters: False |
| 122 | +``` |
| 123 | + |
| 124 | +### -ThrottleLimit |
| 125 | + |
| 126 | +Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If |
| 127 | +this parameter is omitted or a value of `0` is entered, then PowerShell calculates an optimum |
| 128 | +throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. |
| 129 | +The throttle limit applies only to the current cmdlet, not to the session or to the computer. |
| 130 | + |
| 131 | +```yaml |
| 132 | +Type: Int32 |
| 133 | +Parameter Sets: (All) |
| 134 | +Aliases: |
| 135 | +
|
| 136 | +Required: False |
| 137 | +Position: Named |
| 138 | +Default value: None |
| 139 | +Accept pipeline input: False |
| 140 | +Accept wildcard characters: False |
| 141 | +``` |
| 142 | + |
| 143 | +### CommonParameters |
| 144 | + |
| 145 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, |
| 146 | +-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, |
| 147 | +-WarningAction, and -WarningVariable. For more information, see |
| 148 | +[about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters). |
| 149 | + |
| 150 | +## INPUTS |
| 151 | + |
| 152 | +### None |
| 153 | + |
| 154 | +## OUTPUTS |
| 155 | + |
| 156 | +### System.Object |
| 157 | + |
| 158 | +## NOTES |
| 159 | + |
| 160 | +## RELATED LINKS |
| 161 | + |
| 162 | +[Add-ClusterExcludedAdapter](add-clusterexcludedadapter.md) |
| 163 | + |
| 164 | +[Get-ClusterExcludedAdapter](get-clusterexcludedadapter.md) |
| 165 | + |
| 166 | +[Remove-ClusterExcludedAdapter](remove-clusterexcludedadapter.md) |
| 167 | + |
| 168 | +[Repair-ClusterNameAccount](repair-clusternameaccount.md) |
0 commit comments