Script to list all Citrix published applications and the users/groups assigned to them


=============================================================

‘****************************************************************************

‘pubAppRpt.vbs

‘Description: Write to the cmd session a list of all published apps and the

‘             users and groups assigned to them.

‘Usage:       e.g. >cscript pubAppRpt.vbs

‘****************************************************************************

Dim mfFarm

Dim mfApp

Dim mfGrp

Dim mfUsr

Set mfFarm = CreateObject(“MetaFrameCOM.MetaFrameFarm”)

mfFarm.Initialize 1

For Each mfApp In mfFarm.Applications

mfApp.LoadData 1

WScript.Echo “Published Application – ” & mfApp.Appname

WScript.Echo ”    Groups”

For Each mfGrp In mfApp.Groups

WScript.Echo ”        ” & mfGrp.GroupName

Next

WScript.Echo

WScript.Echo ”    Users”

For Each mfUsr In mfApp.Users

WScript.Echo ”        ” & mfUsr.UserName

Next

WScript.Echo

Next

=============================================================

Advertisements
Script to list all Citrix published applications and the users/groups assigned to them

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s