none
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)
    powershell.exe
    arguments -file "C:\CMReport.ps1"

    Please advise.
    J.


    Jan Hoedt

    Wednesday, December 9, 2015 8:54 AM

Answers

All replies