Vijava 学习笔记CustomizationWinOptions 和CustomizationSysprepRebootOption

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. 关闭


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值