CustomizationWinOptions

CustomizationWinOptions
CustomizationWinOptions

Optional operations supported by the customization process for Windows.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "changeSID": false,
    "deleteAccounts": false,
    "reboot": "string"
}
boolean
changeSID
Required

The customization process should modify the machine's security identifier (SID).

For Vista OS and greater, SID will always be modified and a value of false will generate an error.

boolean
deleteAccounts
Required

Deprecated as of VI API 2.5, this value is ignored. Removing user accounts during customization is no longer supported. To change the administrator password, set the administrator password to blank in the master vm. Sysprep will then be able to change the password to the one specified by the password.

If deleteAccounts is true, then all user accounts are removed from the system as part of the customization.

Mini-setup creates a new Administrator account with a blank password.

reboot
Optional

A enum constant specifying what should be done to the guest vm after running sysprep.

Possible values:

  • reboot: Reboot the machine after running sysprep.

    This will cause values specified in the sysprep.xml to be applied immediately.

  • noreboot: Take no action.

    Leave the guest os running after running sysprep. This option can be used to look at values for debugging purposes after running sysprep.

  • shutdown: Shutdown the machine after running sysprep.

    This puts the vm in a sealed state.

Possible values are : reboot, noreboot, shutdown,