Posts RSS Comments RSS 253 Posts and 411 Comments till now

Get-CitrixApplication (Playing Around Series)

Here is a quick demo of getting a Citrix Application and playing with its properties.

Best Viewed Full Screen

Get the Flash Player to see this content.

Demo File

# First we need to create the MFCOM Object
$mfapp = new-object -com MetaFrameCom.MetaFrameApplication
# To initialize we need to pass the app we want to accesss
# With Applications we need to load the data
# Lets see what we have
$mfapp | Get-Member -type Properties
# Lets look at Users and Groups
$mfapp | select Users,Groups
# How bout Servers
$mfapp.Servers | Select ServerName
# Sessions?
$mfApp.Sessions | ft SessionID,AppName,ClientAddress,ClientHRes,ClientVRes -auto

5 Responses to “Get-CitrixApplication (Playing Around Series)”

  1. on 22 May 2008 at 9:26 amDolph

    Really enjoying these series, thanks!

    When I run $mfapp | Get-Member -type Properties, I don’t return all the properties that you do. Why would that be?

  2. on 22 May 2008 at 9:41 amtshell

    What kind of farm do you have? XP, 3.0, 4.0, or 4.5?

    Running from a PS Server or from a remote MFCOM machine?

  3. on 22 May 2008 at 1:05 pmDolph

    This is a remote MFCOM computer against a 4.0 farm.

  4. on 22 May 2008 at 3:12 pmtshell

    It is possibly because you are running remotely. What properties are you missing?

    Are they there but just not filled out? Did you LoadData()?

  5. on 28 May 2008 at 8:09 amDolph

    Thanks for the reply.

    When I run “$mfapp | Get-Member -type Properties” I get a list of properties but there are some listed in your video that I don’t see.

    For example I don’t see:
    AccessConditionFlag, AccessSessionConditions, Accounts2, Accountsvr, Addshortcutotclientdesktop, addtoclientstartmenu, allowanonymousconnections, allowremoteaccess, appprotocols, filetypes2, icofiledata, PNfolder, publishingflags, startmenufolder.

    Probably missing a couple but that’s the general idea. This occurs regardless of the application I run against.

Trackback this post | Feed on Comments to this post

Leave a Reply

You must be logged in to post a comment.