5.2

Table Of Contents
Examples
Recover a local desktop virtual machine that resides on a client system.
vdmadmin -V -recoverClientVM -d lmdtpool -m machine1
Recover a vCenter Server virtual machine and roll back the virtual machine.
vdmadmin -V -recoverServerVM -d lmdtpool -m machine2
Unlocking or Locking Virtual Machines Using the -V Option
You can use the vdmadmin command with the -V option to unlock or lock virtual machines in the datacenter.
Syntax
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
Usage Notes
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
Table 17-19 shows the options that you can specify to unlock or lock virtual machines.
Table 17-19. 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.
Chapter 17 Using the vdmadmin Command
VMware, Inc. 437