VMware View: How to Un-associate a User from a Desktop

1 11 2009

During a View implementation this week a customer asked the question of how to un-associate a user from a desktop if they were using an automated pool of persistent workstations.  This would be required if you had a pool of assigned workstations, meaning that once a user logged into a session the VM they were connected to is always mapped to them after that point.  Then, for example, say a user left the company and you want to remove their workstation from the pool so it can either be re-allocated or destroyed, this is how to accomplish that task.

Using the vdmadmin tool execute the following command from the View Manager server while logged in as an admin:

vdmadmin.exe -L -d <pool_name> -m <vm_name> -r

Alternatively, if you want to assign a desktop to a user, meaning that the first time they go to log into View they receive a specific, pre-created VM, then use the following command:

vdmadmin.exe -L -d <pool_name> -m <vm_name> -u <full_user_name>

Where <pool_name> is the View Manager pool name, <vm_name> is the virtual machine name as seen in VirtualCenter (vCenter), and <full_user_name> is the user name formatted as DOMAIN\username .

Below is a usage sample for this command:

vdmadmin.exe -L -d MyPool -m WinXP-VM -u MYDOMAIN\administrator

 The vdmadmin.exe tool is located in the “%ProgramFiles%\VMware\VMware VDM\Server\bin” directory and is accessible from the command prompt.




3 responses

12 01 2010
Wes Baker

Thanks for the information, very handy. There is one mistake here though. The command to remove a user from a desktop and free it up for someone else should be “vdmadmin.exe -L -d poolName -m machineName -r”. The command you have listed is the exact same as assigning a user to a desktop.

12 01 2010

Thanks Wes, I appreciate the feedback and good catch on the command syntax…updating my post now.

22 04 2010

Thanks for this. I actually wonder how associate a Physical machine to a desktop in a pool, do you know something about that ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: