Edit

Share via


Update-NetIntentAdapter

Updates the network intent configuration for specified network adapters.

Syntax

Default (Default)

Update-NetIntentAdapter
    [-AdapterName] <String[]>
    [[-ClusterName] <String>]
    [[-ComputerName] <String>]
    [-Name] <String>
    [-Wait]
    [<CommonParameters>]

Description

The Update-NetIntentAdapter cmdlet updates the configuration of network adapters to align with the specified network intent. It can be used on individual computers or across clusters.

Examples

Example 1

Update-NetIntentAdapter -AdapterName "Ethernet1" -Name "MyIntent" -ComputerName "Server01"

This example updates the configuration of the adapter named Ethernet1 on the computer Server01 to match the network intent named MyIntent.

Parameters

-AdapterName

Specifies the network adapter(s) to be updated. This parameter accepts an array of adapter names.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ClusterName

Specifies the name of the cluster on which to update the network intent configuration across all nodes.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ComputerName

Specifies the name of the computer on which to update the network intent configuration for the specified adapter(s).

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of the network intent to be applied to the adapter(s).

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:3
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Wait

Indicates that the cmdlet waits for the operation to complete before returning control to the command line.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

Object