XenApp 6.5 powershell commands cheat sheet

//XenApp 6.5 powershell commands cheat sheet

XenApp 6.5 powershell commands cheat sheet

Share this post

I decided to create separate document with my own list of usefull powershell commands for XenApp 6.5. I will continously update this document with command examples I use in my current projects. Feel free to posts comments if you have better solution or command syntax.








To be continued ….

By | 2016-12-18T19:21:30+00:00 March 26th, 2015|XenApp|9 Comments

About the Author:

I’m a Citrix Architect with 17 years experience in Microsoft and Citrix infrastructure. I have been working with Citrix since Metaframe 1.8 and my primary focus is on Server, Desktop and Application virtualisation with a preference for Citrix products. I’m an enthusiast of Citrix XenDesktop and Provisioning Server.


  1. Richard Flacid July 3, 2015 at 7:31 pm - Reply

    I was so excited when I found this page that I lost control of my bowels and shit myself. Several times, in fact. Why can’t Citrix post a page like this? You’ve made it so easy! Thanks!

  2. anson October 20, 2015 at 7:39 am - Reply

    Hi, i was using the script for listing connected users with powershell(x86).
    Then i get the errror as below, am i doing it wrongly?

    The term ‘Get-XASession’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check t
    he spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:14
    + Get-XASession <<<< | Select SessionId, AccountName, ServerName, State | Where {$_.State -ne "Listening" -and $_.Stat
    e -ne "Connected"}
    + CategoryInfo : ObjectNotFound: (Get-XASession:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

  3. anson October 20, 2015 at 8:32 am - Reply

    i got it sorted out, i just need to add this line before executing the script

    add-pssnapin Citrix.* -erroraction silentlycontinue

  4. Hannes December 2, 2015 at 1:15 pm - Reply

    I’m pretty new to Powershell, but i would need a script that asks for a username, then checks if he is connected in the xenapp farm and show me, if he is active right now (or when his last action was in minutes:seconds). is there a way to do that?

  5. Brian March 30, 2016 at 5:05 pm - Reply

    These are absolutely great! Any chance you could throw together a quick query that compiles all sessions that have a hostname like “hostname*” so I can see a total of users connected (or not connected) that conform to a hostname standard?

  6. kishore September 22, 2016 at 1:57 pm - Reply

    Hi, how to get the list of plugins in IE8 through powershell in a server

  7. Vikky December 1, 2016 at 9:45 pm - Reply

    Hi I have a critical requirement. I wanted to be alerted if a specific user gets disconnected an in case of high latency in his session.

    Could you please help me with the script? I think below logic helps to furnish my requirement, but I am new to powershell, so that will be really great if you can help on this:

    Overall I need a constantly running task that will:
    1) Poll each XenApp farms
    2) Find specific user connections
    3) Compare state
    4) if status change, send alert

  8. Kariyappa June 24, 2017 at 8:33 pm - Reply

    Excellent Blog !

  9. Devendra July 25, 2017 at 9:23 pm - Reply

    Its very informative for me .
    I really enjoyed reading this post .

Leave A Comment

To protect our website from spam. * Time limit is exhausted. Please reload the CAPTCHA.