Usefull powershell command use in SCR

By | 8 November, 2012

Below is the useful collection of powershell command use in SCR environment. This command is tested on Microsoft Exchange 2007 SP1.

1) Check replication status

Get-StorageGroupCopyStatus -Identity "server1\testsg" -StandbyMachine "server2"|select StorageGroupName,SummaryCopyStatus,CopyQueueLength,lastlogcopied,ReplayQueueLength,lastlogreplayed,lastInspectedLogtime,lastloginspected

2) Enable SCR for storage group

Enable-StorageGroupCopy "server1\testsg" -StandbyMachine "server2" -ReplayLagTime 1.00:00:00 -TruncationLagTime 2.00:00:00

3) Disable SCR for storage group

Disable-StorageGroupCopy "server1\testsg" -StandbyMachine "server2"

4) Suspend SCR for storage group

Suspend-StorageGroupCopy -Identity "server1\testsg" -StandbyMachine "server2"

5) Resume SCR for storage group

Suspend-StorageGroupCopy -Identity "server1\testsg" -StandbyMachine "server2"

6) View setting for StandbyMachine

$sg = Get-StorageGroup "server1\testsg"
$sg.StandbyMachines

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.