Blank Report Power shell Script RRS feed

  • Question

  • Hi,

    I downloaded the PS script from MS portal , what script does is it fetches the email sent and received count data for specific users and generated the output in html format and sends an email.

    Problem here is , script does not work when I ran as schedule task, only email part works it sends out an email but report is blank.

    But when I run the script manually Everything works fine.

    can some one help here, 

    Auto Schedule job is running under Domain admin privileged and Manually also I am running the script when logged in as Domain admin.



    • Moved by jrv Thursday, January 24, 2019 4:42 AM no respnse
    Monday, January 22, 2018 7:51 AM

All replies

  • We do not support scripts downloaded from the internet. If the script is from MS portal I'm sure there is a Q & A section where you can ask for support.

    Please note that a scheduled task does not have the same environment like an interactive logged on user.

    Best regards,


    Monday, January 22, 2018 7:56 AM
  • Hi,

    It is not about the for scripts downloaded from internet or MS portal.

    In general it is PS script and my questions is regarding the PS script output.



    Monday, January 22, 2018 8:40 AM
  • There is no way to answer your question .


    Monday, January 22, 2018 8:45 AM
  • Thanks but may know any specific reason ?

    so will be cautious next time.


    • Edited by - Atul Monday, January 22, 2018 9:20 AM
    Monday, January 22, 2018 9:18 AM
  • Your question is impossible to understand; please provide all the details and reformulate your question.
    Monday, January 22, 2018 10:31 AM
  • U must provide a piece of code  where the html report is generated, where the send-mailmessage is used etc.

    Without code we can just "guess" ...

    Monday, January 22, 2018 10:41 AM
  • Hi all,

    well I got the script checked from PS developer in house and issue is resolved now.

    -Atul A


    Thursday, January 24, 2019 4:38 AM
  • Atul,  You seem to be having issues with asking questions because you do not have experience asking technical questions.

    The article may help you to ask better questions: How to ask questions in a technical forum

    If you follow the advice in the article you will find that you will get better answers.  Posting a clear description and accurate code will help.


    • Edited by jrv Thursday, January 24, 2019 4:57 AM
    Thursday, January 24, 2019 4:46 AM