Vijava 学习笔记CustomizationWinOptions 和CustomizationSysprepRebootOption

符号 阅读:669 2021-03-31 22:30:48 评论:0

CustomizationWinOptions 类介绍:

Windows的定制过程支持的可选操作类。

方法概要:

NAME TYPE DESCRIPTION
changeSID xsd:boolean

The customization process should modify the machine's security identifier (SID). For Vista OS, SID will always be modified. (是否允许修改安全标示符(SID),比如 Vista 操作系统会修改SID)
deleteAccounts xsd:boolean 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* CustomizationSysprepRebootOption

A value of type SysprepRebootOption specifying the action that should be taken after running sysprep. Defaults to "reboot".(VM执行完 sysprep 后,虚拟机应该执行怎样的操作,默认是重启)。

Since VI API 2.5

CustomizationSysprepRebootOption 枚举简介:

一个枚举变量,指定VM运行完Sysprep后,应该执行怎样的操作

Enum Constants

NAME DESCRIPTION
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.
(不需要重启) 
reboot Reboot the machine after running sysprep. This will cause values specified in the sysprep.inf to be applied immediately. (重启)
shutdown Shutdown the machine after running sysprep. This puts the vm in a sealed state. 关闭


声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

关注我们

一个IT知识分享的公众号