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

Note

This feature runs only on a 32-bit PowerCLI process.

Verify that you are connected to a vCenter Server system.

1

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

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

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
3

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