<< Back to Script Library

Tag: VMware

(37 Scripts)

This script connects to all pod’s in a Cloud Pod Architecture(CPA) or only the local one if CPA hasn’t been initialized and pulls all health information for configured UAG’s.
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.

Note: Requires PowerCLI 11.4 or higher and Horizon 7.10 or higher

Version: 4.6.9  |    Date: 2020-09-23  |   Creator: Wouter Kursten  |   Downloads: 29

Uses the Horizon PowerCLI api’s to pull all Error, Warning and Audit_Fail events from the Horizon Event database for all pods. If there is no cloud pod setup it will only process the local pod. After pulling the events it will translate the id’s for the various objects to names to show the proper names where needed. Requires Horizon 7.5 or later

Output is displayed in the console but also saved to a default location of c:windowstempCU_Horizon_error_log.csv

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 Horizon Credentials to be set for the account running the scipt on the target machine, these need to be created using the ‘Create credentials for Horizon scripts’ Script Action
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’ or by using the ‘Install and configure VMware PowerCLI’Script Action

Version: 1.3.6  |    Date: 2020-09-15  |   Creator: Wouter Kursten  |   Downloads: 17

Uses the Horizon PowerCLI api’s to pull all admin related events from the Horizon Event database for all pods. If there is no cloud pod setup it will only process the local pod. After pulling the events it will translate the id’s for the various objects to names to show the proper names where needed.
Requires Horizon 7.5 or later
Output is displayed in the console but also saved to a default location of c:windowstempCU_Horizon_audit_log.csv

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: 2.6.14  |    Date: 2020-09-15  |   Creator: Wouter Kursten  |   Downloads: 10

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

Version: 9.23.147  |    Date: 2020-09-06  |   Creator: Guy Leech  |   Downloads: 2301

Perform health check analysis of VMware App Volumes on an end-point, reporting issues that may be or were user impacting. Also shows disk mounts and durations for App Volumes mounted for current user sessions.

Version: 2.7.15  |    Date: 2020-08-27  |   Creator: Guy Leech  |   Downloads: 20

This script uses CreateScreenshot_Task of an ESXi virtual machine through vCenter. The screenshot is the moved from the datastore folder of the VM to a location of choice.
Screenshots are placed in the virtual machine configuration folder by default. The script moves the screenshot to the desired target folder. For these steps to succeed the account running the script needs the following priviliges:
1. Virtual Machine – Interaction – Create screenshot
2. Datastore – Browse Datastore
3. Datastore – Low level file operations

Version: 1.4.7  |    Date: 2020-08-05  |   Creator: Ton de Vreede  |   Downloads: 6

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

Version: 2.1.16  |    Date: 2020-06-02  |   Creator: Ton de Vreede  |   Downloads: 35

This script acts when provisioning gets disabled for linked clones desktop pools because the overcommit ratio is set too low. It will calculate the correct ratio and set it to that.
After changing the ratio it will enable provisioning and when set to true it can also force a rebalance of the datastores.
When using iwth a trigger the Connection Server FQDN and Horizon Pool name need to be configured manually.

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’ Or by using the ‘Install VMware PowerCLI’ script.
Credentials can be set using the ‘Prepare machine for Horizon View scripts’ script.

Version: 1.1.3  |    Date: 2020-04-21  |   Creator: Wouter Kursten  |   Downloads: 11

Changes the amount VDI desktops in a desktop pool

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: 2.5.8  |    Date: 2020-02-13  |   Creator: Wouter Kursten  |   Downloads: 15

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  |    Date: 2020-02-11  |   Creator: Wouter Kursten  |   Downloads: 8

Disables Horizon View Virtual Desktop pool provisioning
Can be used as a manual or automated action to disable Horizon View Virtual Desktop pool provisioning if a resource shortage is detected. This action should be executed against a Horizon endpoint machine (one which has the HZ Primary Connection Server column populated in ControlUp Console) which is part of the relevant Desktop Pool. The script uses the target machine to determine the connection server address and the Desktop Pool name, and is executed on the machine running ControlUp Console.

This script requires VMWare PowerCLI and the Vmware.Hv.Helper module 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’
Vmware.Hv.Helper can be installed using the ‘Prepare machine for Horizon View scripts’ script. It can also be found on Github (see LINK). Download the module and place it in your systemdrive Program FilesWindowsPowerShellModules folder

Version: 1.11.17  |    Date: 2020-02-04  |   Creator: Ton de Vreede  |   Downloads: 12

Enables Horizon View Virtual Desktop pool provisioning
Can be used as a manual or automated action to enable Horizon desktop pool provisioning if there are enough resources available. This action should be executed against a Horizon endpoint machine (one which has the HZ Primary Connection Server column populated in ControlUp Console) which is part of the relevant Desktop Pool. The script uses the target machine to determine the connection server address and the Desktop Pool name, and is executed on the machine running ControlUp Console.
This script requires VMWare PowerCLI and the Vmware.Hv.Helper module 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’
Vmware.Hv.Helper can be installed using the ‘Prepare machine for Horizon View scripts’ script. It can also be found on Github (see LINK). Download the module and place it in your systemdrive Program FilesWindowsPowerShellModules folder

Version: 1.9.13  |    Date: 2020-02-04  |   Creator: Ton de Vreede  |   Downloads: 14

This script retreives the administrative users and groups in a Horizon View environment.
You can this script to make sure administrators have the right permissions in Horizon View?
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.

Version: 3.5.9  |    Date: 2020-02-04  |   Creator: Ton de Vreede  |   Downloads: 14

Enables a Horizon Desktop pool.
Can be used as an automated or manual action to enable a Horizon Desktop pool after planned maintenance.
This action should be executed against a Horizon endpoint machine (one which has the HZ Primary Connection Server column populated in ControlUp Console) which is part of the relevant Desktop Pool. The script uses the target machine to determine the connection server address and the Desktop Pool name, and is executed on the machine running ControlUp Console.
This script requires VMWare PowerCLI and the Vmware.Hv.Helper module 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’
Vmware.Hv.Helper can be installed using the ‘Prepare machine for Horizon View scripts’ script. It can also be found on Github (see LINK). Download the module and place it in your systemdrive Program FilesWindowsPowerShellModules folder

Version: 3.11.21  |    Date: 2020-02-04  |   Creator: Ton de Vreede  |   Downloads: 11

Disables a Horizon Desktop pool
Can be used as an automated or manual action to disable a Horizon Desktop pool for planned maintenance.
This action should be executed against a Horizon endpoint machine (one which has the HZ Primary Connection Server column populated in ControlUp Console) which is part of the relevant Desktop Pool. The script uses the target machine to determine the connection server address and the Desktop Pool name, and is executed on the machine running ControlUp Console.
This script requires VMWare PowerCLI and the Vmware.Hv.Helper module 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’
Vmware.Hv.Helper can be installed using the ‘Prepare machine for Horizon View scripts’ script. It can also be found on Github (see LINK). Download the module and place it in your systemdrive Program FilesWindowsPowerShellModules folder

Version: 2.6.8  |    Date: 2020-02-04  |   Creator: Ton de Vreede  |   Downloads: 14

This script Recovers a Horizon View Instant Clone through the VMware.Hv.Helper module. You can use this to ‘rebuild’ an Instant Clone if there is an issue with the machine.
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.

Version: 1.4.5  |    Date: 2020-02-04  |   Creator: Ton de Vreede  |   Downloads: 15

Uses the View API via a Connection Server to query the events database for a given number of days back which contains events summarising the daily use and draws a chart with the data

Version: 1.1.42  |    Date: 2019-11-13  |   Creator: Guy Leech  |   Downloads: 36

This script will gracefully restart the selected vSphere VM Guest OS using VMWare Client Tools.
VMware PowerCLI needs to be installed on the machine running the script.

Version: 3.5.19  |    Date: 2019-08-07  |   Creator: Ton de Vreede  |   Downloads: 82

This script resets the power state for the selected vSphere VM.
VMware PowerCLI needs to be installed on the machine running the script.

Version: 2.2.13  |    Date: 2019-07-24  |   Creator: Ton de Vreede  |   Downloads: 32

This script will migrate the ALL the VM (local) disks to the specified datastore. If all the disks are already on the target datastore the script will exit.

Version: 1.2.6  |    Date: 2019-05-13  |   Creator: Ton de Vreede  |   Downloads: 18

This script will migrate a vSphere VM to the selected host.

Version: 1.2.11  |    Date: 2019-05-13  |   Creator: Ton de Vreede  |   Downloads: 32

This script will power on a selected vSphere VM

Version: 1.2.14  |    Date: 2019-05-01  |   Creator: Ton de Vreede  |   Downloads: 65

This script will power off the selected vSphere VM

Version: 1.2.10  |    Date: 2019-05-01  |   Creator: Ton de Vreede  |   Downloads: 33

This script will gracefully shut down the VM Guest OS using VMWare Client Tools.
A check is done to see of the machine has powered off. The timeout for this check is 180 seconds.

Version: 1.2.24  |    Date: 2019-05-01  |   Creator: Ton de Vreede  |   Downloads: 29

This script gets the files in a selected VMware vSphere Datastore, filtered by the last time they were modified and size. This is useful for researching disk space usage, specifically when you’re intereseted in finding out which files consume significant storage space.

Version: 1.16.49  |    Date: 2019-04-28  |   Creator: Ton de Vreede  |   Downloads: 36

This script removes a named snapshot from the selected VMware virtual machine(s). If the name is left blank it will remove the latest snapshot. The script requires VMware PowerCLI to be installed on the computer the console runs on.

Version: 6.13.35  |    Date: 2019-03-31  |   Creator: Ton de Vreede  |   Downloads: 47

Creates a snapshot of the selected VMware virtual machine(s). Datetime will be added to the default snapshot name ‘ControlUpSnapshot’ if this is used. The script requires VMware PowerCLI to be installed on the computer the console runs on.

Version: 9.18.42  |    Date: 2019-03-31  |   Creator: Ton de Vreede  |   Downloads: 49

This script retrieves the snapshots from the selected VMware virtual machine(s). The script requires VMware PowerCLI to be installed on the computer the console runs on.

Version: 9.13.33  |    Date: 2019-03-31  |   Creator: Ton de Vreede  |   Downloads: 68

This script removes ALL the snapshots from the selected VMware virtual machine(s). The script requires VMware PowerCLI to be installed on the computer the console runs on.

Version: 5.9.22  |    Date: 2019-03-31  |   Creator: Ton de Vreede  |   Downloads: 44

Placing a host in Maintenance will migrate the powerred on VMs to other hosts in the cluster. If the Evacuate switch is passed all offline machines a migrated too.
This script will only place a host in Maintenance if the cluster it is part of is DRSFullyAutomated.
If the host uses a VSAN and the PowerCLI version is high enough the default VsanEvacuationMode setting will be used. This is only supported with PowerCLI 6 or higher.

Version: 1.4.10  |    Date: 2019-03-31  |   Creator: Ton de Vreede  |   Downloads: 25

This script will change the resource allocation of a given vSphere VM. By default, the allocation is increased one ‘SharesLevel’ for CPU, HDD, Memory or all three.
If the SharesLevel for a resource is ‘Custom’ this will not be changed. ALL hard disks will be set to a new SharesLevel based on the current level of the FIRST disk. Example, script is set to Increase level for All resources:
CPU SharesLevel ‘Normal’ —> CPU ShareLevel ‘High’
Memory SharesLevel ‘Custom’ —> Memory SharesLevel ‘Custom’
FIRST HDD SharesLevel ‘Low’, SECOND HDD SharesLevel ‘Normal’ —> ALL HDD SharesLevel ‘Normal’

Version: 1.0.2  |    Date: 2019-03-19  |   Creator: Ton de Vreede  |   Downloads: 17

This script will retreive the physical network adapters of the hypervisor machine and output their details

Version: 1.1.10  |    Date: 2019-02-10  |   Creator: Ton de Vreede  |   Downloads: 109

This script will launch a remote console session in your default browser for a vSphere/ESXi VM. This is mainly useful for vSphere 5.x users.
This script requires PowerCLI v5.0 or greater, Adobe Flash, and the vmware-vmrc browser plugin in order to function.

Version: 5.10.13  |    Date: 2018-12-18  |   Creator: Zeev Eisenberg  |   Downloads: 100

The script will launch the VMware Remote Console for a named VM. This script requires PowerCLI and VMRC from VMware to be installed locally.

Version: 6.10.20  |    Date: 2018-12-06  |   Creator: Niron Koren  |   Downloads: 199

Gracefully restart a VMware VM using PowerCLI through the vCenter.

Version: 4.4.12  |    Date: 2018-12-06  |   Creator: Zeev Eisenberg  |   Downloads: 76

Disable Horizon View Maintenance Mode for the selected computer(s).

Version: 2.3.8  |    Date: 2018-11-29  |   Creator: Zeev Eisenberg  |   Downloads: 25

Enable Horizon View Maintenance Mode for the selected computer(s).

Version: 2.3.11  |    Date: 2018-11-29  |   Creator: Zeev Eisenberg  |   Downloads: 30
START YOUR TRIAL

Get Your Download Link

Gain access to ControlUp from your PC. Register and get a link to start your Free Trial.