Scheduled task: send report via mail: 1 (of 2) report is empty RRS feed

  • Question

  • Hi,

    I have this reports which I send by mail. The ps1 which does that, works fine, both reports (txt) are ok.
    However, when I send it via a scheduled task, only 1 of both has empty results.

    I'm not asking what's wrong with my script but how can I debug where it went wrong? I have set the scheduled task not to run hidden but is does not show any output so I can't see where it fails.
    I'm not sure where to do that since the ps1 is fine, only within a scheduled job there is something wrong.

    Scheduled task:

    action (on Windows 10)
    arguments -file "C:\CMReport.ps1"

    Please advise.

    Jan Hoedt

    Wednesday, December 9, 2015 8:54 AM


All replies