Powershell Splatting

$MailMessage = @{
    To = "Name@powerkb.se"
    From = "Name@powerkb.se"
    Subject = "Hi"
    Body = "You text"
    Smtpserver = "smtp.powerkb.se"
    ErrorAction = "SilentlyContinue"
}
Send-MailMessage @MailMessage
This entry was posted in Powershell. Bookmark the permalink.