As an alternative to specifying the computer name or IP addresses for virtual NICs during customization, you can create a script to generate these items.

The script is executed by the Windows command-line script host (cscript.exe). The script can be written in any compatible scripting language, including JScript or VBScript. See the Microsoft documentation for cscript.exe for more information on writing scripts.

1

Create the script and save it on the vCenter Server system's local disk.

2

In the vSphere Client connected to vCenter Server, select Administration > vCenter Server Settings.

3

Select Advanced Settings.

4

Specify the configuration parameters for the script.

a

In the Key text box, type config.guestcust.name-ip-generator.arg1.

b

In the Value text box, type //nologo and click Add.

c

In the Key text box, type config.guestcust.name-ip-generator.arg2.

d

In the Value text box, type the path to the script file on the vCenter Server system and click Add.

e

In the Key text box, type config.guestcust.name-ip-generator.program.

f

In the Value text box, type cscript and click Add.

5

Click OK.

You can now select the option to use an application to generate computer names or IP addresses during customization.