Set-OSCustomizationNicMapping
This cmdlet modifies the provided OS customization NIC mappings. If the parent spec of the provided NIC mapping is a server-side spec, it is updated on the server. If the parent spec is client-side, the reference that is kept in the memory is updated, but the variable that is passed to the cmdlet is not modified.
Syntax
[[-SubnetMask] <String>]
[[-DefaultGateway] <String>]
[[-Dns] <String[]>]
[-AlternateGateway <String>]
[-IpAddress <String>]
[-IpMode <OSCustomizationIPMode>]
[-Ipv6Address <String>]
[-Ipv6AlternateGateway <String>]
[-Ipv6Gateway <String>]
[-Ipv6Mode <OSCustomizationIPMode>]
[-Ipv6Prefix <Int32>]
[-Ipv6VcApplicationArgument <String>]
[-Position <Int32>]
[-Server <VIServer[]>]
[-VCApplicationArgument <String>]
[-Wins <String[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
OSCustomizationNicMapping[] | named |
|
Specifies the OS customization NIC mapping you want to configure. | optional |
|
String | 1 |
|
Specifies a subnet mask. | optional |
|
String | 2 |
|
Specifies a default gateway. | optional |
|
String[] | 3 |
|
Specifies a DNS address. This parameter applies only to Windows operating systems. | optional |
|
String | named |
|
Specifies an alternate gateway. | optional |
|
String | named |
|
Specifies an IP address. Using this parameter automatically sets the IpMode parameter to UseStaticIp. | optional |
|
OSCustomizationIPMode | named |
|
Specifies the IP configuration mode. The valid values are UseDhcp, PromptUser, UseVCApplication, and UseStaticIP. | optional |
|
String | named |
|
Specifies an IPv6 address. | optional |
|
String | named |
|
Specifies an alternate IPv6 gateway. | optional |
|
String | named |
|
Specifies the default IPv6 gateway. | optional |
|
OSCustomizationIPMode | named |
|
Specifies the IPv6 configuration mode. The valid values are UseDhcp, PromptUser, UseVCApplication, UseStaticIP, UseStatelessIpv6 and UseAutoIpv6. | optional |
|
Int32 | named |
|
Specifies the IPv6 prefix. | optional |
|
String | named |
|
Specifies a new argument to pass to a vCenter Server application to obtain an IPv6 address. | optional |
|
Int32 | named |
|
Specifies the position of the mapping you want to modify. | optional |
|
VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | optional |
|
String | named |
|
Specifies a new argument you want to pass to VCApplication in order to obtain an IP address. | optional |
|
String[] | named |
|
Specifies WINS servers. This parameter applies only to Windows operating systems. |
[[-SubnetMask] <String>]
[[-DefaultGateway] <String>]
[[-Dns] <String[]>]
[-AlternateGateway <String>]
[-IpAddress <String>]
[-IpMode <OSCustomizationIPMode>]
[-Ipv6Address <String>]
[-Ipv6AlternateGateway <String>]
[-Ipv6Gateway <String>]
[-Ipv6Mode <OSCustomizationIPMode>]
[-Ipv6Prefix <Int32>]
[-Ipv6VcApplicationArgument <String>]
[-NetworkAdapterMac <String>]
[-Server <VIServer[]>]
[-VCApplicationArgument <String>]
[-Wins <String[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
OSCustomizationNicMapping[] | named |
|
Specifies the OS customization NIC mapping you want to configure. | optional |
|
String | 1 |
|
Specifies a subnet mask. | optional |
|
String | 2 |
|
Specifies a default gateway. | optional |
|
String[] | 3 |
|
Specifies a DNS address. This parameter applies only to Windows operating systems. | optional |
|
String | named |
|
Specifies an alternate gateway. | optional |
|
String | named |
|
Specifies an IP address. Using this parameter automatically sets the IpMode parameter to UseStaticIp. | optional |
|
OSCustomizationIPMode | named |
|
Specifies the IP configuration mode. The valid values are UseDhcp, PromptUser, UseVCApplication, and UseStaticIP. | optional |
|
String | named |
|
Specifies an IPv6 address. | optional |
|
String | named |
|
Specifies an alternate IPv6 gateway. | optional |
|
String | named |
|
Specifies the default IPv6 gateway. | optional |
|
OSCustomizationIPMode | named |
|
Specifies the IPv6 configuration mode. The valid values are UseDhcp, PromptUser, UseVCApplication, UseStaticIP, UseStatelessIpv6 and UseAutoIpv6. | optional |
|
Int32 | named |
|
Specifies the IPv6 prefix. | optional |
|
String | named |
|
Specifies a new argument to pass to a vCenter Server application to obtain an IPv6 address. | optional |
|
String | named |
|
Specifies the MAC address of the network adapter to which you want to map the OS customization specification. | optional |
|
VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | optional |
|
String | named |
|
Specifies a new argument you want to pass to VCApplication in order to obtain an IP address. | optional |
|
String[] | named |
|
Specifies WINS servers. This parameter applies only to Windows operating systems. |
Output
VMware.VimAutomation.ViCore.Types.V1.OSCustomization.OSCustomizationNicMapping
Examples
Example 1
Modifies the IP address of the specified NIC mapping that uses static IP mode.
Example 2
Modifies the VCApplication argument of the specified NIC mapping.
Example 3
Modifies the attributes of a NIC mapping.
Example 4
Modifies the specified NIC mapping using VCApplication.
Related Commands
OSCustomizationNicMapping