Taskscheduler log output RRS feed

  • Question

  • Hello

    A task is running by task scheduler every 30 mins everyday.

    I just want one more task to monitor whether the task is completed or not.

    Would you please give me the powershell script as necessary below.

    Sorted by Event id : 101 and 102, specified task job name, action time, the job result in the last 24 hours,

    I want to have log txt file into C drive. I guess it should be used "Get-WinEvent"...

    Otherwise if you know it's simple way to export the result log automatically(Task completed or not)

    on daily base, please let me know.

    Thank you
    • Moved by Stanly Fan Friday, August 10, 2018 8:32 AM
    Thursday, August 9, 2018 7:48 AM

All replies

  • Hi,

    This forum is discussing and asking questions about the Windows Form and ClickOnce, it will be more appropriate to ask your question at Windows PowerShell Forum.

    Thank you for your understanding.



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Edited by Stanly Fan Friday, August 10, 2018 8:31 AM
    Friday, August 10, 2018 8:31 AM