Pre-Application Launch script

Discussion in 'Parallels Remote Application Server Feature Suggestions' started by FabioL5, Mar 24, 2026.

  1. FabioL5

    FabioL5 Bit poster

    Messages:
    2
    Hello Parallels,

    I would like to check with you whether it is possible to allow us to include and execute a script after the user clicks to open an application and before the RDS session is launched.

    For example, when the user clicks to execute an application, the Broker would check in the background whether there is any script to be executed. If there is no script, it launches the session normally. If a script is available, it is executed before the session is launched.

    My idea is to keep the RD Session servers stopped when there are zero users connected to my Farm and start the servers on demand. This script would verify whether there is an RD Session host running and start it if necessary. However, I believe this could be useful for other customers as well. It could be used to perform additional validations, send messages to users, trigger other resources, and so on.

    Thank you for your help.

    Best regards.
     

    Attached Files:

    • RAS.png
      RAS.png
      File size:
      226.7 KB
      Views:
      5
    Last edited by a moderator: Mar 25, 2026 at 9:07 PM
  2. Freek Berson @ Parallels

    Freek Berson @ Parallels Principal Product Manager Member

    Messages:
    16
  3. FabioL5

    FabioL5 Bit poster

    Messages:
    2
    Hi Freek,
    Good afternoon. How are you?
    Thank you for your reply.
    Question: is Autoscale able to work with zero RD Session Hosts? If yes, how does it handle when an user tries to connect and there is no session available?
    I had a meeting with Edwin last week and he said the application does not have any configuration where it is possible to work with zero RD Session Hosts at the moment.
    Here is my problem: We do not use Parallels RAS only for our internal operations. We also host and manage RAS environments for our customers. Currently we need to keep at least one Session Host running in each environment overnight and on weekends, even when nobody is connected. This means we are spending a lot of money monthly on EC2 servers that remain idle.
    My idea is:
    1 - Shut down the servers when nobody is active.
    2 - Have a script on the Broker or Gateway (the script must reside outside the RD Session Host servers, as they will be stopped).
    3 - When the user clicks to run the application, the script checks if the RD Session Host is running or not. If not, it starts the server.
    4 - Once the server is active, the user is able to connect.
    The plan is to use this script to prevent the user from seeing the error message "The connection could not be established because the remote machine could not be found".
    As I mentioned, this is a pre-validation step before launching the application. Other customers could also benefit from this pre-validation to execute other tasks.
    Thank you.
     

Share This Page