New-OSCustomizationNicMapping

Synopsis

Adds Nic settings mappings to the specified OS customization specifications.

Syntax

New-OSCustomizationNicMapping -Spec <OSCustomizationSpec[]> [-Server <VIServer[]>] [-IpMode <OSCustomizationIPMode>] [-VCApplicationArgument <String>] [[-IpAddress] <String>] [[-SubnetMask] <String>] [[-DefaultGateway] <String>] [-AlternateGateway <String>] [[-Dns] <String[]>] [-Wins <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
New-OSCustomizationNicMapping -Spec <OSCustomizationSpec[]> [-NetworkAdapterMac <String[]>] [-Server <VIServer[]>] [-IpMode <OSCustomizationIPMode>] [-VCApplicationArgument <String>] [[-IpAddress] <String>] [[-SubnetMask] <String>] [[-DefaultGateway] <String>] [-AlternateGateway <String>] [[-Dns] <String[]>] [-Wins <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
New-OSCustomizationNicMapping -Spec <OSCustomizationSpec[]> [-Position <Int32[]>] [-Server <VIServer[]>] [-IpMode <OSCustomizationIPMode>] [-VCApplicationArgument <String>] [[-IpAddress] <String>] [[-SubnetMask] <String>] [[-DefaultGateway] <String>] [-AlternateGateway <String>] [[-Dns] <String[]>] [-Wins <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Get-OSCustomizationNicMapping
Set-OSCustomizationNicMapping

Detailed Description

Adds Nic settings mappings to the specified OS customization specifications. If the given specification is server-side, it is updated on the server. If it is client-side, the reference that is kept in-memory is updated but the variable that is passed to the cmdlet is not modified.

Parameters

NameDescriptionRequired?Pipeline InputDefault Value
SpecSpecify the OS customization specification to which you want to add the Nic setting mapping.truetrue (ByValue)
ServerSpecify the vSphere servers 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.falsefalse
IpModeSpecify the IP configuration mode. The valid values are UseDhcp, PromptUser, UseVCApplication, and UseStaticIP.falsefalseUseDhcp
VCApplicationArgumentSpecify an optional argument you want to pass to the vCenter Server to obtain an IP address.falsefalse
IpAddressSpecify an IP address. Using this parameter automatically sets the IpMode parameter to UseStaticIp.falsefalse
SubnetMaskSpecify a subnet mask.falsefalse
DefaultGatewaySpecify a default gateway.falsefalse
AlternateGatewaySpecify an alternate gateway.falsefalse
DnsSpecify a DNS address.falsefalse
WinsSpecify WINS servers.falsefalse
WhatIfIndicate that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse
ConfirmIndicate that the cmdlet asks for confirmation before running.falsefalse
NetworkAdapterMacSpecify the MAC addresses of the network adapters to which you want to map the new OS customization specifications.falsefalse
PositionSpecify the position of the NIC to which you want to map the OS customization specification.falsefalselast

Input Type

Return Type

VMware.VimAutomation.Types.OSCustomizationNicMapping

Notes

Examples

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

C:\PS>New-OSCustomizationNicMapping -Spec $spec -IpMode UseStaticIP -IPAddress 1
0.0.0.1 -SubnetMask 255.255.255.0 -DefaultGateway 10.0.0.253 -DnsServer 10.0.0.2
53


Creates a new NIC mapping for the OS customization spec stord in $spec.

Copyright © 1998 - 2009 VMware, Inc. All rights reserved.