On the Connection Server are two utilities that you can use for the maintenance of instant-clone VMs in vCenter Server and the clusters that the VMs are in.

The utilities are IcMaint.cmd and IcUnprotect.cmd and are located in C:\Program Files\VMware\VMware View\Server\tools\bin.

IcMaint.cmd

This command deletes the parent VMs and optionally puts a host in maintenance mode. After performing maintenance, you can run this command to take a host out of maintenance mode.

Syntax:

IcMaint.cmd -vc hostname_or_IP_address -uid user_ID -password password -hostName ESXi_hostname -maintenance ON|OFF

Parameters:

  • -vc host name or IP address of vCenter Server

  • -uid vCenter Server user ID

  • -password vCenter Server user password

  • -hostname ESXi host name

  • -maintenance ON|OFF

    This parameter specifies whether to enter maintenance mode after the parent VMs are deleted. If the host is already in maintenance mode, -maintenance OFF takes the host out of maintenance mode.

All the parameters are required.

IcUnprotect.cmd

This utility unprotects the folders and VMs that ClonePrep creates. ClonePrep is the mechanism that customizes instant clones during the creation process.

Syntax:

IcUnprotect.cmd -vc hostname_or_IP_address -uid user_ID -password password [-clusterId cluster_ID] [-includeFolders]

Parameters:

  • -vc host name or IP address of vCenter Server

  • -uid vCenter Server user ID

  • -password vCenter Server user password

  • -clusterId cluster ID

  • -includeFolders

    This parameter unprotects the folders in addition to the VMs.

All the parameters are required except clusterId and includeFolders. If clusterId is not specified, protection is removed from all ClonePrep VMs in all data centers.