by Stan Czerno
September 8, 2015 05:38 CST
Update: I have a newer version of this script: Powershell Script to launch one or more Published Applications from Citrix Storefront 2.x through 3.6
Since Citrix has released version 3 of Storefront, I needed to make an update to my original script, found here, to make it work with the latest Storefront release. I decided to make a few more modifications as well to provide more info.
I added a routine to the script to check for an Alert Box when the application is found but cannot launch. This error is usually caused by the server's logons being disabled.
For example, the error in Storefront 2.x looks like this:
In Storefront 3 it looks like this:
If either of these are encountered, the script will alert you to check the server(s) or the Storefront logs.
I also attempt to see if the Citrix Client error dialog window appears. For example, if you receive the "SSL Error 29 Error Message", the script should see the window and alert you.
I also added a routine to alert if the NetScaler has ran out of licenses. I encountered this in my lab since I only have 5 licenses. The problem was that the previous version of the script did not attempt to logoff when an error was encountered. I moved some of the functions calls to the finally section so if an error was encountered it would attempt a logoff and release the NetScaler license.
Thanks goes to Chris Straight for showing me what I needed to get the script to work with Storefront 3.
The original script can be found at Citrix; Automating the launch of HDX sessions through StoreFront (and NetScaler Gateway integrated with StoreFront).
See my previous post on how to use the script.
SFLauncher3.ps1: