Hyper-v replica copy script


  • Hi,

    I am looking for some help to write a PS script to do the following. Does anyone have any suggestions
    or has something suitable? 

    Scenario: Hyperv1 hosting SERVER1 which is replicated to Hyperv2

    - pause hyper-v replication of SERVER1 on Hyperv2
    - copy the folder containg SERVER1's .vhdx files etc to a local USB drive
    - provide an indication of the progress of the copy, so that we can confirm it 
    is functioning and see roughly (i.e. a %) how long the copy has left to run
    - once complete restart the replication of SERVER1 from Hyperv1 to Hyperv2
    - reset the statistics of the replication report in hyperv manager

    Wednesday, February 8, 2017 6:28 PM

All replies