Script library

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

Show details for all PVS target devices which are marked as active
View Script
Version: 2.3.11  •   Created: 2018-12-06  •   Modified: 2019-04-04
This script is used to clean up a disk by deleting the content of directories which are known to accumulate large amounts of useless data. By default, the following folders are emptied of files (if they exist):
%systemroot%Downloaded Program Files
%systemroot%Temp
%systemdrive%Windows.old
%systemdrive%Temp
%systemdrive%MSOCacheAll Users
%allusersprofile%AdobeSetup
%allusersprofile%MicrosoftWindows DefenderDefinition Updates
%allusersprofile%MicrosoftWindows DefenderScans
%allusersprofile%MicrosoftWindowsWER
%SystemRoot%memory.dmp
%SystemRoot%Minidump.dmp

Extra folders to be cleaned and specific files to be removed can be added when running the script.
Option: Run CLEANMGR with all options set, and delete Volume Shadow Copies
Option: Run DISM if CLEANMGR was supposed to run but is not available
Note: The CLEANMGR option and DISM fallback remove installers of updates and old Windows versions. If either of these has been run, IT IS NOT POSSIBLE TO UNINSTALL UPDATES OR REVERT TO AN OLDER WINDOWS BUILD!
View Script
Version: 2.6.34  •   Created: 2018-12-02  •   Modified: 2020-12-09
Gets the details of the display adapter/s installed in the computer.
View Script
Version: 1.3.3  •   Created: 2018-12-02  •   Modified: 2018-12-17
display gpu 120
This script reports on the hardware and drivers of the network interface cards (model, driver version, etc., no IP or other configuration information)
View Script
Version: 1.3.4  •   Created: 2018-12-02  •   Modified: 2018-12-17
network nic 220
This script returns the details of the target machine CPU(s) as reported by the OS via WMI, including properties like max clock speed, revision, and status.
Use the Verbose option for extra details.
View Script
Version: 1.4.7  •   Created: 2018-12-02  •   Modified: 2018-12-17
Creates a full process memory dump of the chosen process to a file in the folder specified.
If the chosen process is werfault.exe then its parent process will be dumped instead
Arguments:
Dump Folder - the folder in which to create the dump file in the format ..dmp
View Script
Version: 2.4.7  •   Created: 2018-12-01  •   Modified: 2020-06-04
View Script
Version: 3.1.9  •   Created: 2018-11-30  •   Modified: 2019-07-03
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.
View Script
Version: 1.0.1  •   Created: 2018-11-29  •   Modified: 2018-11-29
citrix FAS 87
Clears all content older than 7 days
View Script
Version: 1.1.7  •   Created: 2018-11-28  •   Modified: 2021-04-20
118
Installs PowerCLI moduleand the required packageprovider NuGet for working with VMware and Powershell for All Users. Also changes the CEIP settings to not send data and Invalid Certificate handling to warn by default.
- Used module Install-Module requires Powershell 5.0 minimum!
- The script will overwrite any existing PowerCLI modules
- MSI based modules must be uninstalled first
View Script
Version: 2.1.16  •   Created: 2018-11-26  •   Modified: 2020-06-02
This script displays a user's Name, Company, Title, Office, Office Phone Number, Mobile Phone Number and E-Mail Address if they exist in AD, as well as those same details for their Manager.

Requires the ActiveDirectory PowerShell module loaded on machine this is be exected from.

Created by Rory Monaghan.
View Script
Version: 1.1.7  •   Created: 2018-11-26  •   Modified: 2018-11-27
This script will retreive the physical network adapters of the hypervisor machine and output their details
View Script
Version: 1.1.10  •   Created: 2018-11-25  •   Modified: 2019-02-10
Creates a report of the packets dropped by Windows firewall during the specified interval.
View Script
Version: 1.4.16  •   Created: 2018-11-22  •   Modified: 2019-02-17
This SBA will check the event logs and report the negotiated RDP version.
View Script
Version: 1.5.13  •   Created: 2018-11-22  •   Modified: 2018-11-27
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.
View Script
Version: 1.10.23  •   Created: 2018-11-19  •   Modified: 2018-12-20
Show details for all modules in use by the chosen process including version, timestamps, size and signing information, grouped by the containing folder.
View Script
Version: 1.2.9  •   Created: 2018-11-09  •   Modified: 2018-11-20
DLL Modules 1523
Find processes which are in sessions which no longer exist or where there are no handle or thread objects open by that process which means that it will not be able to run (unless a UWMP process which are excluded).
If the kill parameter is set to true, all of these processes above will be killed.
Also find processes which are trying to exit but are unable to do so because another process has an open process or thread handle to the exiting process which prevents the process from completely exiting.
Zombie processes may be responsible for end user application usability issues and the cause for high session id numbers.
This script should be run a few times, a few minutes apart, in order to rule out processes which were in the process of closing handles they had open.
There is a known handle leak in ControlUp processes prior to release 8.2. With 8.2 there is still a situation that could result in a leak where the ControlUp agent is running on Windows 10 1809 and later or Server 2019 and the User Input Delay feature is enabled by default. See the 8.2 release notes for further information
View Script
Version: 3.14.32  •   Created: 2018-11-02  •   Modified: 2021-01-05
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
View Script
Version: 1.4.6  •   Created: 2018-10-29  •   Modified: 2018-11-26
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
View Script
Version: 1.4.14  •   Created: 2018-10-29  •   Modified: 2018-11-26
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
View Script
Version: 1.6.11  •   Created: 2018-10-24  •   Modified: 2018-11-26
  • 14
  • of 23