The dpmhyperv SetSysPrepProperties command lets you set sysprep properties on a Hyper-V server.
This command has the following format:
dpmhyperv SetSysPrepProperties [-ws_user username] [-ws_password password] [-ws_encrypted_password] -hypervHost hostname -vm VM_name|-vmguid vm_ID [-jobRef job_reference] [-computerName computer_name] [-ip4addr ip4_address] [-ip4dhcp] [-ip4dhcpint ip4dhcpint] [-ip4mask network_mask] [-ip4gw gateway_address] [-ip4metric ip_metric] [-ip4dns dnsserver_ip] [-disableAdmin] [-adminPass administrator_password] [-autoLogon autologon] [-duplicatorString duplicator_string] [-timezone timezone] [-productKey product_key] [-userName user_name] [-organization org_name] [-domain domain_name] [-domainAdmin domain_admin_login] [-domainAdminPass domain_admin_password] [-workgroup workgroup_name] [-adminUser admin_username] [-adminUserPass admin_password] [-adminGroup admin_groupname] [-custom custom] [-pre] [-post] [-locale iso639value]
(Optional) Specifies the CA Server Automation user name.
(Optional) Specifies the CA Server Automation user password.
(Optional) Indicates whether the CA Server Automation password is encrypted.
Specifies the name of the Hyper-V host.
Specifies the VM name.
Specifies the unique GUID of the VM.
Specifies the job identifier.
(Optional) Specifies the name of the computer.
(Optional) Specifies the static IPv4 address that you want to assign to the VM interface.
(Optional) Specifies the DHCP address.
(Optional) Specifies the subnet mask that you want to assign to the VM. Use this option with the -ip4ddr option.
(Optional) Specifies the option to set the gateway for the VM. Use this option with the -ip4ddr option.
(Optional) Specifies the interface metric that you want to set for the VM. Use this option with the -ip4ddr option.
(Optional) Specifies the DNS server for the VM. Use this option with the -ip4ddr option.
(Optional) Specifies the option to disable default administrator account for the VM. Support for this parameter requires a Windows image created using Sysprep tool. This option is invalid in the asynchronous mode.
(Optional) Specifies the default administrator password for the VM.
(Optional) Specifies the option to set the number of accounts that automatically log on with the default administrator account after the Sysprep process completes.
(Optional) Specifies the name of the system duplicator to set in the VM registry.
(Optional) Specifies the time zone used by the VM that are created using the template.
Default:
-1
(Optional) Specifies the Windows product activation key for the VM.
(Optional) Specifies the user name of the Windows in the VM.
(Optional) Specifies the user name of the Windows in the VM. This option is invalid in the asynchronous mode.
(Optional) Specifies the domain name of the VM.
(Optional) Specifies the domain administrator login.
(Optional) Specifies the password for the domain administrator account. This option is invalid for the asynchronous mode.
(Optional) Specifies the workgroup of the VM. This option is invalid for the asynchronous mode.
(Optional) Specifies the user name that is the member of the default Administrators group.
(Optional) Specifies the password of the default Administrators group.
(Optional) Specifies the list of comma-separated custom commands that are executed at the end of the Sysprep process.
(Optional) Generates an event before the operation is complete.
(Optional) Generates an event after the operation is complete.
(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".
Example: Set Sysprep Properties on the Hyper-V Server
This example sets the sysprep properties on the host, "hserver."
dpmhyperv SetSysPrepProperties -hypervHost hserver -vm VM_05 -ip4addr 130.119.0.40 -ip4mask 255.255.0.0 -ip4gw 130.119.0.100
Copyright © 2013 CA. All rights reserved. |
|