Script Library

Boost your management, troubleshoot, and remediation capabilities with scripts created by experts in the IT community.

<< Back to Script Library

Tag: rds

(14 Scripts)
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.
Version: 1.2.15  |   Created: 2020-10-21  |   Modified: 2020-12-01  |   Creator: Joel Stocker  |   Downloads: 30
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.
Version: 1.3.18  |   Created: 2020-06-19  |   Modified: 2020-06-19  |   Creator: Guy Leech  |   Downloads: 93
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’
Version: 1.5.6  |   Created: 2020-01-09  |   Modified: 2020-02-11  |   Creator: Wouter Kursten  |   Downloads: 10
Leverage MSTSC.exe for Shadow and remote control of sessions.

For troubleshooting see:
https://support.controlup.com/hc/en-us/articles/360000602929-Shadow-RDS-Session-without-prompt

Note for Win10: Make sure you are allowing “Remote Desktop -Shadow (TCP-In)” in the Firewall
Version: 1.7.20  |   Created: 2019-11-09  |   Modified: 2020-06-11  |   Creator: Marcel Calef  |   Downloads: 96
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.
Version: 1.5.28  |   Created: 2019-04-01  |   Modified: 2019-04-10  |   Creator: Guy Leech  |   Downloads: 76
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.
Version: 1.3.4  |   Created: 2019-03-13  |   Modified: 2019-03-27  |   Creator: Ton de Vreede  |   Downloads: 125
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.
Version: 1.2.2  |   Created: 2019-03-13  |   Modified: 2019-03-31  |   Creator: Ton de Vreede  |   Downloads: 72
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.
Version: 1.3.4  |   Created: 2019-02-25  |   Modified: 2019-03-27  |   Creator: Ton de Vreede  |   Downloads: 196
Logs off the selected user session
Version: 1.1.1  |   Created: 2019-01-27  |   Modified: 2019-01-27  |   Creator: ek  |   Downloads: 978
Displays the titles of all visible windows running in the user session
Version: 1.0.1  |   Created: 2019-01-13  |   Modified: 2019-01-13  |   Creator: Guy Leech  |   Downloads: 309
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.
Version: 2.4.20  |   Created: 2018-12-26  |   Modified: 2020-06-10  |   Creator: Guy Leech  |   Downloads: 139
This SBA will check the event logs and report the negotiated RDP version.
Version: 1.5.13  |   Created: 2018-11-22  |   Modified: 2018-11-27  |   Creator: mc  |   Downloads: 77
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)
Version: 1.6.19  |   Created: 2018-07-18  |   Modified: 2018-11-21  |   Creator: Guy Leech  |   Downloads: 77
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).
Version: 1.0.5  |   Created: 2016-03-07  |   Modified: 2016-03-07  |   Creator: david.crook  |   Downloads: 197