wmi citrix farm enumeration

Here is an alternate way to attach to citrix without needing to be a farm administrator and enumerate the list of published applications in the farm.

we tested this on both one of our legacy metaframe farms and a citrix xenapp 4.5 and 5.0 farm.

Logic is as follows:
1.) attach to server > strcomputer
2.) attach to WMI Namespace - root\citrix
3.) query against MetaFrame_ApplicationsPublishedONServer

After script is run and only if enumeration is a success, you should see your list, which will return the following:

CitrixServer: \\servername\root\citrix:Citrix_Server.Servername="appServer"
WinApp: \\servername\root\citrix:MetaFrame_Application.name"published app name",ParentFolderDN="location of published application"

AttachmentSize
wmi-citrix-published-applications.vbs970 bytes