I'm looking for some assistance with sending encrypted emails from Outlook using a PowerShell script. I already have a script that generates a password and sends the email, but I'm not sure how to encrypt the email and set it to "highly confidential and do not forward." Here's a bit of context: I run my script from a virtual desktop infrastructure (VDI) on my laptop, connecting to a server where the script executes. I use an SMTP server for sending the emails. If anyone has recommendations or can point me to a helpful article about this, I'd really appreciate it!
5 Answers
Using a password manager like Keeper could be a solution too. You can share passwords securely with users who have accounts, or send a self-destructing link for those who don’t.
Instead of sending the password directly via email, consider using a secure link service like onetimesecret.com. It generates a link valid for a limited time and can only be used once, which is much safer. Plus, it's a good way to avoid the hassle of encrypting emails entirely. Just make sure to let your recipient know how to access it!
That's a smart method! It definitely reduces risks with email security.
For Office 365 users, you might want to ditch SMTP and use the Graph PowerShell module with the Send-MGUserMail command instead. You’ll need to format some JSON for your email, but it's a robust solution for encrypting emails properly without extra software.
That sounds promising! I'd love to see how the Graph API can simplify this process.
You could also set up transport rules in Exchange to apply encryption automatically based on specific words in the subject line. That way, you can send emails normally, and the server handles the encryption automatically!
That sounds like an efficient method! I'd definitely explore that for a more automated approach.
Have you looked into pwpush.com? It's pretty handy for creating temporary links that delete themselves after use. My team uses it regularly, and it gives us the flexibility we need without worrying about email encryption complexities.
Exactly, Keeper’s share feature is great if they already have an account!