This is a quick script to remove stale datastore entry on a host using a reboot cycle script which puts a host into maintenance mode, reboot, remove from maintenance mode and loop through the remaining hosts of the cluster. This is useful for weekend patches or any other maintenance work. Once completed the stale entry…