1 2 3 4 5 |
$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 } |