Script Library

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

<< Back to Script Library

Tag: maintenance

(8 Scripts)
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 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: 4.6.27  |   Created: 2020-02-02  |   Modified: 2023-05-24  |   Creator: Ton de Vreede  |   Downloads: 90
Enables a Horizon Desktop pool

Can be used as an automated or manual action to enable 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 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: 5.11.55  |   Created: 2019-08-22  |   Modified: 2023-05-24  |   Creator: Ton de Vreede  |   Downloads: 59
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  |   Created: 2019-02-21  |   Modified: 2019-03-31  |   Creator: Ton de Vreede  |   Downloads: 40
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: 234
Disable Horizon View Maintenance Mode for the selected computer(s).
Version: 3.3.12  |   Created: 2014-11-26  |   Modified: 2022-06-13  |   Creator: Zeev Eisenberg  |   Downloads: 118
Enable Horizon View Maintenance Mode for the selected computer(s).
Version: 3.3.12  |   Created: 2014-11-26  |   Modified: 2022-06-13  |   Creator: Zeev Eisenberg  |   Downloads: 145
Disable XenDesktop maintenance mode for the selected computer(s)
Version: 9.10.32  |   Created: 2013-11-24  |   Modified: 2023-02-23  |   Creator: Zeev Eisenberg  |   Downloads: 1448
Enable XenDesktop maintenance mode for the selected computer(s). Highlight the target VMs, but run it on the broker for the VMs.
Version: 8.0.11  |   Created: 2013-11-24  |   Modified: 2023-02-23  |   Creator: Zeev Eisenberg  |   Downloads: 1267