#—————————————————————————————————
#PowerShell sample script to list XenDesktop 5.x VDAs in a specific state (as noted below), sorted by name
# VDAs that are:
# – powered on,
# – available,
# – do not have a pending power action, and
# – are set to shutdown after use
#
#Note: One or more required values must be specified below before executing the script.
#
#
#
#Version 1.0
#———————————————————————————————–
#Provide the following values before executing:
#The FQDN and port (if not the default of 80) of the DDC
#Eg: ‘ddc01.domain.com:80’
$ddcAddress = ”
#End of variables
#******************************************************************
asnp Citrix.Broker*
Get-BrokerDesktop -PowerActionPending $false -PowerState On -SummaryState Available -WillShutdownAfterUse $true -AdminAddress $ddcAddress | Format-List MachineName