Clone multiple VMware virtual machines to a different Datastore as a backup
-
Clone this script from github or copy the files manually to your prefered directory.
-
Edit the VM-Cloner.ps1 file and replace the following values:
- $vcenter = "vc.domain"
- $username = "" - leave blank to use current user credentials
- $password = ""
- $sourceLocation = "Production"
- $datastore = "ESX1"
- $targetlocation = "AutoBackup"
- $datacenter = "DC1"
- $targetResourcePool = "AutoBackup"
- $targethost = "" - hostname.domain or leave blank to use current VM host as target
Author: RaveMaker.