Skip to content

Commit

Permalink
Get-DbaDbMailServer: Fix e-mail account names if more than one accoun…
Browse files Browse the repository at this point in the history
…t exists (#9506)
  • Loading branch information
potatoqualitee authored Oct 14, 2024
1 parent bca8543 commit 0c8fbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Get-DbaDbMailServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function Get-DbaDbMailServer {
$servers | Add-Member -Force -MemberType NoteProperty -Name ComputerName -value $mailserver.ComputerName
$servers | Add-Member -Force -MemberType NoteProperty -Name InstanceName -value $mailserver.InstanceName
$servers | Add-Member -Force -MemberType NoteProperty -Name SqlInstance -value $mailserver.SqlInstance
$servers | Add-Member -Force -MemberType NoteProperty -Name Account -value $servers[0].Parent.Name
$servers | Add-Member -Force -MemberType NoteProperty -Name Account -value $servers.Parent.Name
$servers | Select-DefaultView -Property ComputerName, InstanceName, SqlInstance, Account, Name, Port, EnableSsl, ServerType, UserName, UseDefaultCredentials, NoCredentialChange
}
} catch {
Expand Down

0 comments on commit 0c8fbf9

Please sign in to comment.