Script library

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

Retrieve NetScaler vServer Certificate information, using the Invoke-RestMethod cmdlet for the REST API calls.
View Script
Version: 1.0.2  •   Created: 2018-07-18  •   Modified: 2018-07-18
Downloads SysInternals tool, pskill.exe and execute it against a process.
View Script
Version: 1.0.1  •   Created: 2018-07-12  •   Modified: 2018-07-12
500
Show all error events from all event logs on the selected computer, ordered on the most frequent, in the specified time period where there is more than one instance of that specific event.
Arguments:
Minutes Back - the number of minutes back from the current time to search (default is 60)
Log Level - the event log level to search for events (default is Error)
Excluded log names - an optional regular expression, e.g. "Application", which will exclude events from any event logs where the event log name matches the regular expression.
View Script
Version: 1.4.8  •   Created: 2018-07-09  •   Modified: 2018-11-21
Show all warning events from all event logs on the selected computer, ordered on the most frequent, in the specified time period where there is more than one instance of that specific event.
Arguments:
Minutes Back - the number of minutes back from the current time to search (default is 60)
Log Level - the event log level to search for events (default is Warning)
Excluded log names - an optional regular expression, e.g. "Application", which will exclude events from any event logs where the event log name matches the regular expression.
View Script
Version: 1.6.23  •   Created: 2018-07-06  •   Modified: 2018-11-21
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
View Script
Version: 22.33.182  •   Created: 2018-07-02  •   Modified: 2025-02-23
Moves a computer to a new deployment group using the ccacmd.exe utility on the endpoint.

Note 1: The Allow unregistration option MUST be enabled in the original deployment group.
Note 2: The Allow self-registration option MUST be enabled in the target deployment group.

This script requires Management Center 8.6 or higher.
See https://community.ivanti.com/docs/DOC-68222 for additional details.
View Script
Version: 1.0.15  •   Created: 2018-06-12  •   Modified: 2018-06-13
37
While add-ins enhance the functionality of Microsoft Office, in some cases they can affect performance and stability. This script will list the add-ins for a selected user session.
This script leverages OfficeIns.exe from https://www.nirsoft.net/utils/officeins.html
View Script
Version: 1.15.23  •   Created: 2018-06-07  •   Modified: 2018-12-21
Displays how long Environment Manager held up the logon process. It will display the entire time as well as how long the Pre-Desktop trigger took to fire. This action requires the 9662 (Trigger Action Times) enabled in the EM policy for the "AppSense" event log. You may need to adjust the "Offset" at the beginning of the script according to your time zone.
View Script
Version: 1.2.8  •   Created: 2018-05-24  •   Modified: 2018-06-05
201
Unlocks the desktop by deploying a default configuration with Application Access Control, Advanced Network Access Control, and Trusted Ownership disabled. It also backs up your current config so it can be restored when the machine is re-locked.
View Script
Version: 1.1.7  •   Created: 2018-05-18  •   Modified: 2018-05-24
33
Takes the previously backed up configuration and restore it to the running live configuration.
View Script
Version: 1.1.5  •   Created: 2018-05-18  •   Modified: 2018-05-18
30
Delete local NetScaler License File from the appliance, using the Invoke-RestMethod cmdlet for the REST API calls.
View Script
Version: 1.0.1  •   Created: 2018-05-07  •   Modified: 2018-05-07
Match the MAC Address of the first NetScaler interface with the Hostname in the License file on the NetScaler appliance (when using local license files for NetScaler licensing), using the Invoke-RestMethod cmdlet for the REST API calls.
View Script
Version: 1.0.2  •   Created: 2018-05-07  •   Modified: 2018-05-07
Retrieve SSL statistical information, using the Invoke-RestMethod cmdlet for the REST API calls.
View Script
Version: 1.0.1  •   Created: 2018-05-07  •   Modified: 2018-05-07
netscaler 162
Retrieve NS statistical information, using the Invoke-RestMethod cmdlet for the REST API calls.
View Script
Version: 1.0.1  •   Created: 2018-05-07  •   Modified: 2018-05-07
netscaler 301
Retrieve NetScaler detailed License file informatio, using the Invoke-RestMethod cmdlet for the REST API calls.
View Script
Version: 1.0.1  •   Created: 2018-05-06  •   Modified: 2018-05-06
netscaler 187
Displays the currently installed Ivanti Application Control configuration.
Requires EM 10.1 FR1 or higher.
View Script
Version: 1.1.3  •   Created: 2018-04-12  •   Modified: 2018-05-13
60
Issues a poll now to the designated endpoint. It will also force the endpoint to download the assigned config regardless of the installation schedule as long as the "Allow update initiation" is selected for the assigned deployment group.
View Script
Version: 2.2.9  •   Created: 2018-04-12  •   Modified: 2019-08-14
88
Displays the currently installed Ivanti Application Control configuration.
Requires AC 10.1 FR1 or higher.
View Script
Version: 1.2.5  •   Created: 2018-03-26  •   Modified: 2018-05-13
43
Disables Environment Manager logging on the selected endpoint if Environment Manager is installed. This SBA requires EM 8.6 or higher.
View Script
Version: 2.2.6  •   Created: 2018-03-26  •   Modified: 2018-06-06
63
Enables Environment Manager logging on the selected endpoint if Environment Manager is installed. This SBA requires EM 8.6 or higher.
View Script
Version: 1.2.5  •   Created: 2018-03-26  •   Modified: 2018-05-03
74
  • 17
  • of 23