Alex_Romeo
Leadership
Leadership

Hi,

If you want to be sure, remove them from the customization and insert them into the PowerCli.

Or you can get the addresses by taking them from a CSV file, or set the ipmode = 'PromptUser' parameter.

Set-OSCustomizationNicMapping –IpMode UseStaticIP –IpAddress “192.168.0.101” –SubnetMask “255.255.252.0” –DefaultGateway “192.168.0.1” –Dns “192.168.0.10”

New-OSCustomizationNicMapping –OSCustomizationSpec “BasicWindowsSpec” –IpMode UseDhcp –Dns “192.168.0.10”, “192.168.0.20” –Wins “192.168.0.030”, “192.168.0.40”

Set-OSCustomizationNicMapping –IpMode promptUser –IpAddress “192.168.0.101” –SubnetMask “255.255.252.0” –DefaultGateway “192.168.0.1” –Dns “192.168.0.10”

VMware PowerCLI Forum - VMware {code}

http://kb.kaminskiengineering.com/node/353

Alessandro Romeo

Blog: https://www.aleadmin.it/
Reply
0 Kudos