You can apply a custom configuration to a cloned virtual machine by using a customization object.


This feature runs only on 32-bit PowerCLI process.

Connect to a vSphere server.


Get the Spec customization specification and clone it for temporary use.

Get-OSCustomizationSpec Spec | New-OSCustomizationSpec -Type NonPersistent -Name ClientSpec

Change the NamingPrefix property of the customization object to the name of the virtual machine you want to create.

Set-OSCustomizationSpec -Spec ClientSpec -NamingPrefix VM1

Create a virtual machine named VM1 by cloning the existing VM virtual machine and applying the customization specification.

Get-VM VM | New-VM -VMHost Host -Datastore Storage1 -OSCustomizationSpec ClientSpec -Name VM1