Invoke-Command `
-ComputerName stock1,stock2 `
-ScriptBlock { 
Install-WindowsFeature `
-Name Storage-Replica `
-IncludeManagementTools `
-Restart }

Test-SRTopology `
-SourceComputerName STOCK1 `
-SourceVolumeName R: `
-SourceLogVolumeName L: `
-DestinationComputerName STOCK2 `
-DestinationVolumeName R: `
-DestinationLogVolumeName L: `
-DurationInMinutes 1 `
-IgnorePerfTests `
-ResultPath c:\

New-SRPartnership `
-SourceComputerName STOCK1 `
-SourceRGName RGstock1 `
-SourceVolumeName R: `
-SourceLogVolumeName L: `
-DestinationComputerName STOCK2 `
-DestinationRGName RGstock2 `
-DestinationVolumeName R: `
-DestinationLogVolumeName L: `
-EnableEncryption

Sync-SRGroup `
-computername STOCK1 `
-Name RGstock1

(Get-SRGroup).Replicas

Get-WinEvent -ProviderName Microsoft-Windows-StorageReplica

Set-SRPartnership `
-NewSourceComputerName STOCK2 `
-SourceRGName RGstock2 `
-DestinationComputerName STOCK1 `
-DestinationRGName RGstock1

Get-SRPartnership | Remove-SRPartnership

Invoke-Command `
-ComputerName stock1,stock2 `
-ScriptBlock { Get-SRGroup | Remove-SRGroup }


