diff --git a/public/Get-DbaDbMailServer.ps1 b/public/Get-DbaDbMailServer.ps1 index cec0636db7..8277abfa36 100644 --- a/public/Get-DbaDbMailServer.ps1 +++ b/public/Get-DbaDbMailServer.ps1 @@ -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 {