Forum Discussion
chendley
Sep 10, 2019Copper Contributor
Send-MailMessage with Powershell and Exchange Online with MFA
I am having difficulty with one of my scripts that blocks a user from signing into Office 365 then sends an email to my manager and HR when the script has completed. I downloaded the Exchange Onl...
chendley
Sep 11, 2019Copper Contributor
Thank you for the response.
Is there a way to not store the password within the script?
Kevin_Morgan
Sep 11, 2019Iron Contributor
Yes you can store password in Windows Credentials Manager and retrieve it using PowerShell.
Check this post for more info: https://www.morgantechspace.com/2019/05/how-to-store-and-read-user-credentials-from-windows-credentials-manager.html
Check this post for more info: https://www.morgantechspace.com/2019/05/how-to-store-and-read-user-credentials-from-windows-credentials-manager.html