Automate Citrix Session Launch for Load tests or health probing

Requirements

  • Citrix Workspace app Version 1808 for Windows or later.
  • Storefront Store needs to have http auth module enabled.

Step 1: Retrieve Resource Name of the app/desktop you would like to automate

“C:\Program Files (x86)\Citrix\ICA Client\AuthManager\storebrowse.exe” -U <username> -P <password> -D <domain> -M 0x2000 -E “https://<storefrontserver>/Citrix/<storename>/discovery”

First column of the output would have the resource name. In My case it’s a windows 10 VDI >
Controller.W10-QA $S2-4‘ ‘W10-QA’ ‘\’ ” https://storefront/Citrix/XDOnly-Internal/resources/v2/Q29udHJvbGxlci5XMTAtUUEgJFMyLTQ-/launch/ica

Step 2: Get the ICA file for the desired Resource Name

“C:\Program Files (x86)\Citrix\ICA Client\AuthManager\storebrowse.exe” -U <username> -P <password> -D <domain> -L “Controller.W10-QA $S2-4” “https://<storefrontserver>/Citrix/<storename>/discovery”

-L with resource name will retrieve the ICA file and save it to %AppData%\Local\Citrix\storebrowse\cache\launch.ica

Step 3: Launch the ICA file

%AppData%\Local\Citrix\storebrowse\cache\launch.ica

Reference > https://docs.citrix.com/en-us/citrix-workspace-app-for-windows/store-browse.html

Leave a comment

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