This Script Action uses the ServiceNow API to create an incident in ServiceNow IT Service Management. The script as presented is for a specific use case: it creates an incident containing the user’s full name, the user’s logon duration and the machine name.
This Script Action can also be used as an example/template for your own ServiceNow integration needs. See the script for more details on how to modify.
Pull all or just error, warning & critical event log entries from a given number of seconds before logon to a given number of seconds after logon.
Can assist in finding causes of slow or incorrect logons.
Changes the amount of RDS hosts in a Horizon Farm.
This action should be executed against a Horizon endpoint machine (one which has the HZ Primary Connection Server column populated in ControlUp Console). The script uses the target machine to determine the connection server address, and is executed on the machine running ControlUp Console.
This script requires VMWare PowerCLI to be installed on the machine running the script.
PowerCLI can be installed through PowerShell (PowerShell version 5 or higher required) by running the command ‘Install-Module VMWare.PowerCLI -Force -AllowCLobber -Scope AllUsers’
Leverage MSTSC.exe for Shadow and remote control of sessions.
For troubleshooting see:
Note for Win10: Make sure you are allowing “Remote Desktop -Shadow (TCP-In)” in the Firewall
This script finds Internet Explorer processes corresponding to tabs in which the URL matches the pattern provided by the user in the “Tab Title Pattern” argument, and kills these processes.
Internet Explorer may recover the killed tab automatically, which is a default behavior controlled by the the “Enable automatic crash recovery” setting. When set to “yes”, the “Disable Tab Recovery” setting of this script will prevent the killed tab from getting reopened. Tab recovery will then remain disabled at the user level.
If the Force parameter is set to “yes”, the script will terminate the processes it found, even if their count does not correlate to the number of tabs matching the provided pattern. Be advised that this option may result in closing more tabs than intended, and should be used with caution.
This script creates a video of the entire user display area and saves it in a location of choice. This script requires ffmpeg.exe to be downloaded and placed in an accessible location.
This script gets the dimensions of the users working display area and takes screenshots. The screenshots can be saved as a BMP, JPG or PNG in a location of choice.
This script gets the dimensions of the users working display area and take a screenshot. The screenshot can be saved as a BMP, JPG or PNG in a location of choice.
Logs off the selected user session
Displays the titles of all visible windows running in the user session
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.
This SBA will check the event logs and report the negotiated RDP version.
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.
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)
Puts RDS hosts into maintenance mode using the chglogon command. The script will disable all new user connections to the server until it is rebooted (existing active connections are not affected).