Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to add images to the email body of my powershell script.

$
0
0

I have a PowerShell script to notify users when there password is about to expire. I would like to imbed these images into the email but I am having a hard time figuring it out. Below is the code and  I would like to embed them after the Paragraph breaks.

Any help is much appreciated.

Thanks

Sincerely

a PowerShell noob  

 $body ="<p>Dear $name,<br></P><br><p>Your Password will expire $messageDays.<br>
    Please change your password before it expires to avoid problems accessing to your work services.<br></P><br>  Press Ctrl-Alt-Del and choose Change Password.
    If you not in a branch connect to the VPN and Press Ctrl-Alt-Del and choose change Password.<br></P><br>
    If you are working in a terminal server Press Ctrl-Alt-END and Choose Change password.<br></P><br>
    If you have a mobile device please be sure to update your Password on that device to avoid your account from being locked out.<br></P><br>
    If you still are having troubles with changing your password please call the help desk at 888-888-8888.<br></P><br><p>Thanks, <br></P><br> Help Desk <br></P><br><br>" 


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>