O'Reilly logo

Getting Started with Citrix XenApp 6 by Guillermo Musumeci

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using MFCOM on XenApp

We can use PowerShell to call MFCOM objects on XenApp 5.0 farms or older versions. This is useful when we want to use PowerShell to manage multiple versions of XenApp farms or migrate data from previous versions of XenApp.

The following is a simple example of how to call an MFCOM object, inside a PowerShell script. The script shows the XenApp farm name on a XenApp 5.0 or earlier version. This example will fail on XenApp 6.0:

$CtxXA = New-Object -ComObject "MetaFrameCOM.MetaFrameFarm"
$CtxXA.Initialize(1)
$CtxXA.FarmName

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required