Powershell and Citrix Metaframe COM Objects

Whenever you want to have a quick overview of the sanity of a XenApp 5 farm, you can use Powershell to retrieve useful infos from the Metaframe COM object. With XenApp 6 you have a bunch of Cmdlets to administrate and control your farm.

For XenApp 5 there are actually only the XenApp Commands available which are still only a tech preview. So if you want a stable and comfy environment to work with your farm, just create an COM object and use this instead.

With those two lines you will be able to access some very nice functions:

If you want to logoff all users on the farm, use the following line (this will log you out too if you are connected over rdp or ica):

Have fun…

Leave a Reply

Your email address will not be published. Required fields are marked *