Skip to content

Commit

Permalink
AddRange to add elements instead of object to list
Browse files Browse the repository at this point in the history
  • Loading branch information
lusassl-msft authored and dpaulson45 committed Aug 29, 2023
1 parent 3ff43c7 commit d2c18cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Security/src/CVE-2023-21709/CVE-2023-21709.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ begin {
$exchangeServersToProcess = New-Object "System.Collections.Generic.List[string]"
} process {
if ($null -ne $ExchangeServerNames) {
Write-Verbose ("Adding server: $ExchangeServerNames to the list of servers to be processed...")
$exchangeServersToProcess.Add($ExchangeServerNames)
Write-Verbose ("Adding server(s): $([string]::Join(", ", $ExchangeServerNames)) to the list of servers to be processed...")
$exchangeServersToProcess.AddRange($ExchangeServerNames)
} else {
Write-Verbose ("No server was passed via the ExchangeServerNames parameter")
}
Expand Down

0 comments on commit d2c18cf

Please sign in to comment.