Hyper-V Replicate all VMs

$allVMs = get-vm
foreach ($VM in $allVMs) {
Enable-VMReplication $VM -ReplicaServerName lasthope.contoso.com -ReplicaServerPort 443 -AuthenticationType Certificate -CertificateThumbprint 87c4337a097b33afb013a9c9001e4eb23fdde321 -ReplicationFrequencySec 900
Start-VMInitialReplication $VM.name
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *