I'm implementing to write a PowerShell script to send a secured email which contains password in it. I've been investigating the good ways to implement, but I cannot find out a proper method.
The scenario is: A person requests a password, the script will automatically generate the password and send it to this person email, this person uses Outlook to open the mail box.
My desire is to force the person using his AD credential to open the email, but to do this, an account runs this script needs to have this person's certificate. Thus, it seems impossible.
My second idea is to create a webpage where password requestors can decrypt the password they received via an email. The webpage requires Single-Sign-On and other tricks to protect the authenticated users who want to logon.
If you have any better ideas, may you help me to sort it out?