Freigeben über


Retrieve timer job history for a specified time range using PowerShell

 

 

 # Retrieve timer job history for a specified time range

Comments

  • Anonymous
    January 01, 2003
    hi Jan,

    You could use:

    Get-SPTimerJob | % { $.HistoryEntries } | Where-Object {($.StartTime –gt "MM/DD/YYYY hh:mm:ss”) -and ($_.EndTime -lt "MM/DD/YYYY hh:mm:ss AM") } | Format-Table –Property StartTime,EndTime,JobDefinitionTitle

  • Anonymous
    January 01, 2003
    Great script

  • Anonymous
    November 20, 2013
    Does it work for Content Deployment jobs too?

  • Anonymous
    February 12, 2014
    But not all jobs are connected to web applications. How can I use PowerShell to see their history?

  • Anonymous
    April 29, 2015
    How do I tell it where to store the file? I ran the script but can't find the file anywhere

  • Anonymous
    April 29, 2015
    Nevermind!

  • Anonymous
    December 28, 2015
    RedK- Just mention the path after export command c:FailedTimerJobHistory.csv or by default it will be stored in current path u r running script.

  • Anonymous
    January 05, 2016
    Thank you so Much, very helpful