Modify Multiple NIC Mapping Objects of a Customization Specification
You can modify multiple NIC mapping objects of a customization specification and apply the specification to an existing virtual machine.
Procedure
1
Get the network adapters of a virtual machine named VM.
Get-NetworkAdapter VM
When you apply a customization specification, each network adapter of the customized virtual machine must have a corresponding NIC mapping object. You can correlate network adapters and NIC mapping objects either by their position numbers, or by MAC address.
2
Create a customization specification named Spec.
New-OSCustomizationSpec -Type NonPersistent -Name Spec -OSType Windows -Workgroup Workgroup -OrgName Company -Fullname User -ProductKey “valid_key” -ChangeSid -TimeZone "Central European" -NamingScheme VM
3
Add a new NIC mapping object that uses a static IP address.