The most common request we get for Power and Capacity Manager is the support for other power management APIs… With XenApp 5.0 Feature Pack 2, we only support Wake-on-LAN and XenServer API. We will extend this list in upcoming versions.

In the meanwhile, your only option is to use WMI events to trigger power-on commands to your computer management infrastructure.

I’ve tested the following using Powershell V2. The script has to run in the Concentrator:

Register-WmiEvent -Namespace "ROOT\Citrix\XenAppPCM" -SourceIdentifier "PowerEventAction" -Query "Select * from __InstanceModificationEvent within 10 where TargetInstance ISA 'Server' and TargetInstance.PowerActionState=4" -Action {
   $servers = Get-WMIObject -Namespace "ROOT\Citrix\XenAppPCM" -Query "Select * from Server Where PowerActionState=4"
   foreach ($s in $servers)
     #Launch power action command to the server management infrastructure here
     Write-Host $("Server: " + $s.Name + " MAC: " + $s.MacAddress)

PCM classes in WMI are registered under ROOT\Citrix\XenAppPCM namespace. The script above registers a listener that triggers when PCM changes a server “PowerActionState” attribute to 4 – this state indicates PCM needs additional capacity for a workload.

Another interesting event in PCM WMI is “NotEnoughCapacityEvent”. This event triggers when all servers in the workload are on-line, but policies would require additional servers to become on-line. You could use this to trigger provisioning of additional servers in that workload.

PCM WMI classes are pretty feature rich. In fact, all console operations issue WMI operations under the covers. You can find the MOF files after installing the Concentrator, at %WINDIR%\System32\WBEM\PCMConcentrator_v2.0.50727.mof and %WINDIR%\System32\WBEM\Framework\root\Citrix\XenAppPCM\PCMConcentrator_SNVersion_1.0.2.0.mof

You may also take a look at the Powershell WMI Explorer from (link), it’s a pretty decent WMI browser using nothing but Powershell!