List servers and number of published applications.
MFCOM/.vbs:
set farm = CreateObject("MetaFrameCOM.MetaFrameFarm")
farm.Initialize(1)
for each server in farm.Servers
if server.Applications.Count = 0 then
WScript.Echo server.ServerName & " " & server.Applications.Count
end if
next
PowerShell:
Add-PSSnapin Citrix.XenApp.Commands
Get-XAServer | Select ServerName, @{n='Applications'; e={$_ | Get-XAApplication | Measure-Object | Select -Expand Count}}