Clone multiple virtual machines to a different datastore as a backup
Scenario
Clone multiple virtual machines to a different datastore as a backup.
All of my virtual servers, and ONLY virtual servers in a specific folder in vcenter, needed to be cloned to a backup datastore weekly, so I wrote a powershell script to clone them. I then added a Scheduled Task on my vCenter server to execute the script on Saturday evening.
https://github.com/willisiw/ShellScripts/blob/master/vm-bulk-clone.ps1