From eb391a7fdd4ec2a3dc81d0e34234529b7757690c Mon Sep 17 00:00:00 2001 From: niphlod Date: Fri, 16 Dec 2016 00:55:52 +0100 Subject: [PATCH] fix -Databases to be filled with unique values --- internal/DynamicParams.ps1 | 2 ++ 1 file changed, 2 insertions(+) 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