Task Scheduler - PowerShell send email RRS feed

  • General discussion

  • Hi,

    I have a script that returns data and sends it via email (using Send-MailMessage). I then schedule the script to run daily via Windows Task Scheduler.

    As of a few days ago this stopped working, the script runs but no email is generated. After testing I found that an email is sent, only if "Run only when user is logged on" is enabled. 

    Requirement - to schedule a PowerShell script to run daily via Task Scheduler whether user is logged on or not. 


    • Changed type Callum Moore Tuesday, April 30, 2019 11:26 AM discussion required
    Tuesday, April 30, 2019 11:03 AM

All replies