From c7a97b1782d0df99ca912a019b8e91666629fc4f Mon Sep 17 00:00:00 2001 From: Shawn Melton Date: Sun, 24 Feb 2019 23:58:27 -0600 Subject: [PATCH] Pass Login values to Copy-DbaLogin Call to `Copy-DbaLogin` simply didn't pass the values. Fixes #5119 --- functions/Sync-DbaAvailabilityGroup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/Sync-DbaAvailabilityGroup.ps1 b/functions/Sync-DbaAvailabilityGroup.ps1 index 8fa943330f..4ecdc17934 100644 --- a/functions/Sync-DbaAvailabilityGroup.ps1 +++ b/functions/Sync-DbaAvailabilityGroup.ps1 @@ -232,7 +232,7 @@ function Sync-DbaAvailabilityGroup { if ($Exclude -notcontains "Logins") { if ($PSCmdlet.ShouldProcess("Syncing logins from $primaryserver to $secondaryservers")) { Write-ProgressHelper -Activity $activity -StepNumber ($stepCounter++) -Message "Syncing logins" - Copy-DbaLogin -Source $server -Destination $secondaries -ExcludeLogin $ExcludeLogin -Force:$Force + Copy-DbaLogin -Source $server -Destination $secondaries -Login $Login -ExcludeLogin $ExcludeLogin -Force:$Force } }