Some admins would like to retrieve a list of virtual Desktops and their assigned user. The console doesn’t provide this.
This little powershell script delivers the required result
Powershell on the DDC – get be obtained here : Microsoft Powershell Download Page
The XenDesktop Powershell SDK is installed on the DDC – Reference :
(you may need to set the :Set-ExecutionPolicy” cmdlet to adjust the PowerShell execution policy to a value such as “RemoteSigned”)