You can use the vdmadmin command with the -V option to unlock or lock virtual machines in the datacenter.


vdmadmin -V [-b authentication_arguments] -e -d desktop -m machine [-m machine] ...

vdmadmin -V [-b authentication_arguments] -e -vcdn vCenter_dn -vmpath inventory_path

vdmadmin -V [-b authentication_arguments] -p -d desktop -m machine [-m machine] ...

vdmadmin -V [-b authentication_arguments] -p -vcdn vCenter_dn -vmpath inventory_path

You should only use the vdmadmin command to unlock or lock a virtual machine if you encounter a problem that has left a View desktop in an incorrect state. Do not use the command to administer desktops that are operating normally. For example, do not use vdmadmin to unlock a checked-out remote desktop if you can use View Administrator to roll back the local session.

If a desktop is locked and cannot be rolled back, and the entry for its virtual machine exists in ADAM, use the -d and -m options to specify the desktop pool and virtual machine for the desktop that you want to unlock. You can use the vdmadmin-M command to discover the name of the virtual machine that is assigned to a user.

If a desktop is locked and the entry for its virtual machine no longer exists in ADAM, use the -vmpath and -vcdn options to specify the inventory path of the virtual machine and the vCenter Server. You can use vCenter Client to find out the inventory path of a virtual machine for a desktop or View Transfer Server instance under Home/Inventory/VMs and Templates. You can use ADAM ADSI Edit to find out the distinguished name of the vCenter Server under the OU=Properties heading.

Options for Unlocking or Locking Virtual Machines shows the options that you can specify to unlock or lock virtual machines.

Options for Unlocking or Locking Virtual Machines

Option

Description

-d

desktop

Specifies the desktop pool.

-e

Unlocks a virtual machine.

-m

machine

Specifies the name of the virtual machine.

-p

Locks a virtual machine.

-vcdn

vCenter_dn

Specifies the distinguished name of the vCenter Server.

-vmpath

inventory_path

Specifies the inventory path of the virtual machine.

Unlock the virtual machines machine 1 and machine2 in desktop pool dtpool3.

vdmadmin -V -e -d dtpool3 -m machine1 -m machine2

Unlock the virtual machine for a View Transfer Server instance on a vCenter Server.

vdmadmin -V -e -vcdn  "CN=f1060058-dde2-4940-947b-5d83757b1787,OU=VirtualCenter,OU=Properties,DC=myorg,DC=com" -vmpath "/DataCenter1/vm/Desktops/LocalMode/LDwin7"

Lock the virtual machine machine3 in desktop pool dtpool3.

vdmadmin -V -p -d dtpool3 -m machine3