Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Email the user after 5 days if the same user exists in log after 5 days

$
0
0

Hi All,

I have a script to get email and error from a logs. I'm planing to email the user using command send-mailmessage. But how can i make sure that I won't send out the same email within 5 days? because the system will auto generate the log and the user will keep receiving emails. I wanted to setup if the same user exists, no email will send out and after 5 days if the same user exists again, then send out the email.

 

Rgds,

Liew

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles