Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Manage Citrix Applications
Manage Citrix Applications

Manage Citrix Applications

Peter Barendse

|
55 installs
| (1) | Free
Enable/Disable Citrix applications and terminate broker sessions which are using the applications.
Get it free

Manage Citrix Applications

'Manage Application Pools' makes it possible to enable and disable Citrix applications during a release. Connections to the Citrix broker server is being made with WinRM (HTTP 5985 or HTTPS 5986). This task is tested on a Citrix 7.14 environment. Please be so kind to let me know if it works on different versions too.

Version 1* contains the following functions

  • Connect with remote server using WinRM

    • Server(s): Connect to one or several servers. Servernames need to be comma devided.
    • Username / password: Provide a username and password with the permissions to connect to the server, can terminate broker sessions and is allowed to enable and disable applications .
  • Citrix application management options

    • Terminate all existing sessions linked to the application.
    • Enable application.
    • Disable application.
      • Disabling the application also gives the option to terminate all existing sessions.

Handling multiple applications is supported. The names need to be comma devided. (app1,app2)

How does it work?

After creating a WinRM session to the broker server, the powershell module 'Citrix.Broker.Admin.V2' is imported. This module is part of the Citrix SDK, but should be available on the broker server by default. The application is being found by searching for the browsername, since this one seems to be unique. Based on this result, the application is being handled.

Sessions are being terminated based on the UID of the application and sessions that using this UID. Be aware that the Citrix user does not receive a notification when the session is terminated. I'll add this feature in the future upon request.

Tips & tricks

Run the following powershell command on the broker server to find the browsername of your application:

 Add-PSSnapin -Name Citrix.Broker.Admin.V2 
 Get-BrokerApplication -ApplicationName "<application name>" | Select Name, BrowserName, Enabled, Visible
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft