Emptying a VMFS datastore with PowerCLI
Well, once again I hacked at the Powershell/PowerCLI the other day. Since we don’t yet have a Enterprise Plus license at work (which would support Datastore Maintaince and Storage DRS), I needed a way to empty one datastore and move all the content into another one, while enabling Thin-Provisioning. So I googled for a bit, and actually found a few hints … So without further yada-yada, here’s the script I came up with: ...