Signed email using Powershell

Have a script that sends an email report. Need to have the email digitally signed.
Any way i can send a digitally signed email using Powershell ?

That gets into a lot of complexity. Using just the native Send-MailMessage, you’d have to construct the signed, multipart MIME body of the message manually, and then PowerShell could definitely send it.

If you’re using the .NET Framework’s SMTPClient, you might be able to.

$cert = # get a certificate object from the CERT: drive
$smtp = new-object -type

Something like that. See the conversation at

Also check out PowerShell Send Signed Email using PFX File and see if that helps. It relies on a third-party class, but there’s a download link provided.