Performs a test of all the technical requirements for HDX content redirection, which can potentially save bandwidth and CPU. The script’s output provides the test results along with recommendations on components that need to be enabled or upgraded for content redirection to work.
Run on a Delivery Controller or where the CVAD PowerShell snapins are available, e.g. Studio is installed. User running the script must have sufficient permission to chage the enabled state of the selected delivery groups
Show how recently (in number of days) delivery groups have had sessions launched from them, by checking the last used property for each machine in a delivery group. Specify the minimum number of days last launched to show only delivery groups which have not had sessions launched within that number of days and optionally disable them. Specify 0 days to show all delivery groups.
Run on a Delivery Controller or where the CVAD PowerShell snapins are available, e.g. Studio is installed.
There are many situations for which a machine (server OS or workstation) will lose domain trust. If the ControlUp agent is installed on the machine, this script will execute locally and repair the domain trust. Domain credentials with permission to reset the computer account must be provided.
This Script Action checks if your Citrix ADC appliance is a VPX and if so, changes the cpuyield setting to YES to ensure no High CPU usage is reported on the hypervisor (see https://support.citrix.com/article/CTX229555)
Note: This script only changes the setting on the current ADC and most be performed on both nodes of a HA pair as the setting is node specific and not synchronized.
Finds and optionally deletes local user profiles. The user can provide two arguments – the minimum profile age in days and the minimum profile size. The default operation mode is to display the profiles that fit these criteria. When the “Delete” option is set to “true”, the script will delete the profiles it found.
Show the client device Operating System type form for a specific user session. Use this script without requesting the display of the Receiver version to get the results grouped by client OS (available only as a ControlUp Script Based Action).
Categorization of the Client OS is accomplished by querying the Citrix VDA or XA65 worker for the ClientPlatformId registry value in the appropriate Citrix ICA hive for that user session and follow the conversion described in this document: https://www.citrix.com/mobilitysdk/docs/clientdetection.html
This script queries and displays the values of performance counters for the Citrix Federated Authentication Service object. It requires the “CitrixFederatedAuthenticationService” service to exist on the target computer.
Citrix Apps and Desktops (formerly XenApp and XenDesktop) introduced Adaptive transport which automatically chooses between TCP & UDP for the HDX sessions. This script will leverage the ctxsession command to display the current status of the active HDX sessions.
Show the Citrix Director actions performed in a given time window, optionally filtered on a specific user. Use this SBA to see what actions have been taken which might affect end users such as logging them off. Arguments: Start – optional time to show actions from. Can be specified as a date/time or as a number of units of time back from the present such as 7d or 1w where s=second,m=minute,h=hour,d=day,w=week,y=year (default is 7 days) End – time to stop showing actions after. Can be specified either as a date/time or a number of units of time from the start value specified. (default is the current time) If date/time values are used, they must be enclosed in double quotes, e.g. “02/02/2018 08:00:00” Username – optional name of a user to just show changes for
Show the configuration changes made in Citrix Studio in a given time window, optionally filtered on a specific user. Use this SBA to see if any changes have been made which might be affecting end users. Arguments: Start – optional time to show changes from. Can be specified as a date/time or as a number of units of time back from the present such as 7d or 1w where s=second,m=minute,h=hour,d=day,w=week,y=year (default is 7 days) End – time to stop showing changes after. Can be specified either as a date/time or a number of units of time from the start value specified. (default is the current time) If date/time values are used, they must be enclosed in double quotes, e.g. “02/02/2018 08:00:00” Username – optional name of a user to just show changes for
Recurses AD groups found to show all user accounts with any access to Citrix Studio. Needs to be run using an account that has at least read-only Studio access. Use it to see exactly which users have access and what level. Arguments: User Name to Query – an optional username or regular expression to restrict the display to
If a name is specified as a parameter then only that account is reported on
Retrieve Citrix Provisioning Services audit events, if auditing has been enabled although it can be enabled by this SBA if required. Use to see what administrative actions were performed in an optional time window, by whom and what was done. It must be run with the credentials of a user who has been granted PVS access. Arguments: Enable Auditing – if auditing is not enabled, specifying true for this parameter will enable auditing if the user running the SBA has sufficient privilege. Start – optional time to show audit events from. Can be specified as a date/time or as a number of units of time back from the present such as 7d or 1w where s=second,m=minute,h=hour,d=day,w=week,y=year End – optional time to stop showing audit events after. Can be specified either as a date/time or a number of units of time from the start value specified. If date/time values are used, they must be enclosed in double quotes, e.g. “02/02/2018 08:00:00”
Pull all log separate Citrix StoreFront log files into a single time sorted csv file. You may need to change the StoreFront logging levels first which can be done with the “Show or Change StoreFront Logging” SBA. Use to help diagnose StoreFront issues. Arguments: Output csv file – full path to a local or remote file to store the log entries in Start – optional time to start log export from, e.g. just before the problem started or was reproduced. Can be specified as a date/time or as a number of units of time back from the present such as 7d or 1w where s=second,m=minute,h=hour,d=day,w=week,y=year End – optional time to stop log export at. Can be specified either as a date/time or a number of units of time from the start value specified. If date/time values are used, they must be enclosed in double quotes, e.g. “02/02/2018 08:00:00”
Retrieve PVS boot times for a given period from event logs and show them with overall statistics such as fastest, slowest and average boot times. Can help find performance issues. Ensure that each PVS server’s stream service has event logging enabled Arguments: Last – report on events created in the last x hours/days/weeks, e.g. 7d for last 7 days or 4w for 4 weeks (default is 7 days)
Query or change the logging levels in Citrix StoreFront. Enable more verbose logging when troubleshooting potential StoreFront issues but turn the level back to off or error when finished to reduce the impact on CPU and free disk space. Arguments: Cluster – ff set to true then all servers in the cluster will be discovered and reported/operated on rather than just the selected computer (default is false) Trace Level – specify one of: ‘Off’, ‘Error’,’Warning’,’Info’,’Verbose’ or leave empty to query rather than change the current settings (default is empty)
Disconnect or logoff sessions on the selected computer(s) which have been idle in excess of a given period, specified in minutes. Arguments: Idle Period – the time in minutes after which a disconnected session will be logged off or disconnected depending on the value for the “Logoff” argument (default is 30 minutes) Logoff – if true, sessions idle in excess of the idle period will be logged off, otherwise they will be disconnected (default is false so sessions will be disconnected)
Cancels any “Message and Logoff” SBAs which are still running on the selected computer(s) by finding the associated PowerShell process and terminating it. Arguments: Cancellation Message – A message to display to the users so they can be informed that they will not be logged off (default is no mesage)
Send a message to all connected sessions and then log them all off after a specified amount of time. The message can be repeated at a specified interval if required. For instance, a delay of 15 minutes can be set and the users messaged every 5 minutes with the text specified in the “Message Text” argument. When the configured script timeout of 60 seconds is reached, an error will be displayed but the script will keep running. If you need to cancel the logoff once the script has timed out, run the “Cancel Logoffs” SBA for the same computer(s) Arguments: Message Text – The text of the message to display to all connected users on the selected computer(s) Delay Before Logoff – The period in minutes from when the script is invoked to when all users will be automatically logged off by the SBA Message Every – how often, in minutes, the same message is displayed to the remaining users. Specify zero or a blank value to not repeat the message after the initial display
Show user name, logon and logoff times of all users who have logged off, or been logged off, the selected computer(s) in the last x hours where x is an argument defaulting to 48. Useful to be able to spot if many users were logged off at a specific time. Arguments: Hours back to search – default is 48 User – optional user name to search for otherwise all users will be displayed
Use quser.exe to find disconnected sessions on the chosen computer and order on the most recently disconnected, showing the user’s logon time too. Arguments: Hours Back to Check – how far back to look for disconnected sessions so those disconnected before this time will not be included (default is 24 hours)
Get a detailed overview of the most recent logon process for a specific user. This script queries the event log for every major event that relates to the logon process. Use this action to track down which phase is responsible for delays during the logon process. Uses WMI to retrieve pre-Windows logon phase data from Citrix so does not use OData and therefore does not need credentials
The script runs for 20 seconds and measures (once every 2 seconds) the ICA RTT and network latency of the relevant session. The output shows the session info (username, device name/IP, session name/ID) and 10 reads (once every 2 seconds) of the session’s ICA RTT and network latency in seconds.
Resets Citrix Receiver in VDA session. Requires cleanup.exe and selfservice.exe. It can take a little over a minute to run. * Resetting will delete all apps, desktops, accounts, and configurations, and return Receiver to default settings. It will also close all active sessions. Only reset Citrix Receiver to resolve serious problems.
Version: 2.2.6 | Created: 2016-08-11 | Modified: 2017-02-26 | Creator: David Ott | Downloads: 145
This script measures the bandwidth of a given active HDX session, and breaks down the bandwidth consumption into the most useable ICA virtual channels. The output shows the bandwidth usage in kbps (kilobits per second) of each virtual channel and the total session. This version shows only the session output (download), and not the upload.
The script runs on the ControlUp Console computer and initiates an HDX connection against one or more XenApp servers in order to check the server’s health. The script does not perform any actual login activity to the targeted XenApp server.
A Script to obtain the Pool Non Paged Bytes which ultimately is an indication of the amount of Cache in Ram used by Citrix Provisioning Services. This script will output the amount of PVS Ram Cache in use. This is done by enumarating the amount of Pool nonPaged Bytes in use, which is a measure of the RamCache. Action should be taken if this figure is close to the amount allocated within PVS. The script also supports examining the PVS configuration of disk cache only.