We get tickets from users that are having an issue with their Virtual Desktops and we only have their username to figure out which VM they are using. It can be a pain to find out which VMs they are entitled to in the GUI so I wrote a script to pull the data.
I have found that there are currently no VMWare cmdlets that allow you to get data from Virtual Desktop Manager directly. However, VDM stores it's data in an ADAM instance and PowerShell can connect to ADAM to get at the data.
My script will prompt you for your credentials (to talk to Virtual Center and Virtual Desktop Manager) and then prompt you for a username. It will then convert the username to a SID and lookup the SID in the ADAM instance on your VDM server to find which VMs the user is entitled to use. The script then uses the VIToolkit cmdlets to pull information about those VMs.
You need to update the script with data for these variables:
$VCServer - this needs to be the FQDN of your Virtual Center server
$VDMServer - this is the Virtual Desktop Manger server that has the entitlement information for the user
Enjoy!
This document was generated from the following thread: Get-VDMData (takes a username and returns data about all the Virtual Desktops they are entitled to use)