# —————————————————————————————————
#PowerShell sample script to create a power action to turn on a XenDesktop 5.x desktop
#
#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 = ”
#The name of the desktop
#Eg: ‘DOMAIN\ComputerName’
$desktopName = ”
#End of variables
#******************************************************************
asnp Citrix.*
New-BrokerHostingPowerAction -MachineName $desktopName -Action TurnOn -AdminAddress $ddcAddress