Script Library

Order by
Showing controlup scripts that tagged 'user profiles, disk activity, maintenance' ordered by Date

Set host state to maintenance 1.4.10

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. tags:vsphere,host,maintenance,vmware
Created: 2019-02-21
Modified: 2019-03-31
Creator: Ton de Vreede
Downloads: 25

Show or delete local user profiles 2.4.20

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. tags:user profiles,disk space,vdi,rds,citrix
Created: 2018-12-26
Modified: 2020-06-10
Creator: Guy Leech
Downloads: 74

Run procmon and sample file access 2.10.45

Run the Sysinternals Process Monitor (procmon) utility for a specified amount of time for a selected process and see which files are most frequently accessed. If a path to an existing procmon executable is not given, it will be downloaded securely from the live.sysinternals.com site. Arguments: Monitor Period - the time in seconds to run the monitoring for. Monitoring for more than 60 seconds is not recommended as this can potentially impact system performance and disk space. Backing file - if not specified this will be in the \windows\temp folder on the system drive which on Citrix PVS booted systems can cause performance issues so specifying a file on a persistent local drive can help alleviate this potential issue. Procmon Location - the location of an existing copy of procmon.exe. If not specified and internet connectivity is available, it will be downloaded. tags:Procmon,IOPS,Disk Activity
Created: 2018-10-01
Modified: 2019-08-08
Creator: Guy Leech
Downloads: 281

List all XenDesktop VMs in Maintenance Mode 1.3.8

This script will list all the VMs in a specific XenDesktop site that are listed in maintenance mode in the DDC. It must be run on a XenDesktop broker. The script prompts for and requires at least a XenDesktop read-only admin account. tags:PowerShell, XenDesktop, maintenance mode
Created: 2016-05-04
Modified: 2016-05-05
Creator: Matan Nataf
Downloads: 242

RDS Drain Sessions 1.0.5

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). tags:RDS, Maintenance,
Created: 2016-03-07
Modified: 2016-03-07
Creator: david.crook
Downloads: 184

Disable Horizon View Maintenance Mode 2.3.8

Disable Horizon View Maintenance Mode for the selected computer(s). tags:VMware, Horizon,View,PowerShell,PowerCLI, maintenance
Created: 2014-11-26
Modified: 2018-11-29
Creator: Zeev Eisenberg
Downloads: 23

Enable Horizon View Maintenance Mode 2.3.11

Enable Horizon View Maintenance Mode for the selected computer(s). tags:VMware, Horizon,View,PowerShell,PowerCLI, maintenance
Created: 2014-11-26
Modified: 2018-11-29
Creator: Zeev Eisenberg
Downloads: 28