Script Library

Order by
Showing controlup scripts that tagged 'user profiles, host' ordered by Date

Redirect URLs to 127.0.0.1 in HOSTS file 1.4.19

This script can be used as a quick way to block access to a URL. The provided URLs (comma separated) are placed in a 'ControlUp' section of the HOSTS file, where they are directed to 127.0.0.1. As a result DNS lookup of these URLs always point to home, essentially preventing access to a website unless you know the IP number. After this the command IPCONFIG /FLUSHDNS is run to clear the DNS cache. tags:ip blocking, hosts
Created: 2020-03-30
Modified: 2020-03-30
Creator: Ton de Vreede
Downloads: 16

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: 22

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: 59

Show host NIC details 1.1.10

This script will retreive the physical network adapters of the hypervisor machine and output their details tags:vmware, host, nic
Created: 2018-11-25
Modified: 2019-02-10
Creator: Ton de Vreede
Downloads: 97