diff --git a/internal/DynamicParams.ps1 b/internal/DynamicParams.ps1 index 7828cac15e..953f489cb3 100644 --- a/internal/DynamicParams.ps1 +++ b/internal/DynamicParams.ps1 @@ -263,6 +263,8 @@ filled with snapshot list from specified SQL Server server. $databaselist += $database.DatabaseSnapshotBaseName } } + + $databaselist = $databaselist | Get-Unique # Reusable parameter setup $newparams = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary